Hi I am new to site and the latest version of zen cart.
I am using the sage template with it and I would like to figure out how to have two logo's on the header.
Any help would be great.
Hi I am new to site and the latest version of zen cart.
I am using the sage template with it and I would like to figure out how to have two logo's on the header.
Any help would be great.
That template comes with an alterd/custom tpl_header.php file
It is located in /includes/templates/sage/common
Open it and add the highlighted line where indicated
where you want the anchor to go = http: // somewhereCode:<?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div> <?php } } ?> <div class="forward" id="logo2">href="where you want the anchor to go"><img src="images/image name" alt="text"</a></div> </div> </div> <!--eof-branding display-->
images/image name = your second logo image
Zen-Venom Get Bitten
Wouldn't it be more correct to add the additional Logo like this in /includes/templates/sage/common/tpl_header.php
Then in /includes/languages/english/sage/header.php add the following:Code:<div id="logo2"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO2_IMAGE, HEADER_ALT_TEXT, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO2_IMAGE, HEADER_LOGO2_WIDTH, HEADER_LOGO2_HEIGHT) . '</a>'; ?></div>
Code:define('HEADER_LOGO2_WIDTH', '200px'); define('HEADER_LOGO2_HEIGHT', '70px'); define('HEADER_LOGO2_IMAGE', 'logo2.gif');
Don't get me wrong kobra, as I haven't looked at the "modified" tpl_header.php file in that template, but that looks more like a "quick and easy" way instead of the correct way.
Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!
That is correct, but as the OP is posting first time this might seem more friendly vs the Zen Way that would also require in addition several edits to pickup alt text and other referencesOriginally Posted by Get Em Fast
Zen-Venom Get Bitten
Kobra I tried what you suggested and it located in the menu bar.
What I would like to have it replace it the tag line.
I do back up the whole page before i do any changes so I can paste original back if needed.
So I guess the question becomes should I replace the tag line info with what you suggested?
Thanks for your help.
Get Em Fast
Thanks I am going to try that today.
I will let you know how it works for me.
If it is displaying just comment out the complete tagline code leaving logo2 code where it isSo I guess the question becomes should I replace the tag line info with what you suggested?
Zen-Venom Get Bitten
When you do it that way the image must be in your templates /image dirGet Em Fast
Thanks I am going to try that today.
I will let you know how it works for me.
Zen-Venom Get Bitten
And don't forget, you will also need to position it in your stylesheet by adding a block of code pertaining to the new logo. Something like:
#logo2 img {margin: 0 0 0 25px; padding: 20px;}
or what ever makes it look good and be positioned where you need it.
Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!