Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37
  1. #1
    Join Date
    Dec 2010
    Posts
    8
    Plugin Contributions
    0

    Default Two logo's on header

    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.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Two logo's on header

    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
    Code:
    <?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-->
    where you want the anchor to go = http: // somewhere
    images/image name = your second logo image
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Two logo's on header

    Wouldn't it be more correct to add the additional Logo like this in /includes/templates/sage/common/tpl_header.php

    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>
    Then in /includes/languages/english/sage/header.php add the following:

    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!

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Two logo's on header

    Quote Originally Posted by Get Em Fast
    that looks more like a "quick and easy" way instead of the correct way.
    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 references
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Dec 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Two logo's on header

    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.

  6. #6
    Join Date
    Dec 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Two logo's on header

    Get Em Fast
    Thanks I am going to try that today.
    I will let you know how it works for me.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Two logo's on header

    So I guess the question becomes should I replace the tag line info with what you suggested?
    If it is displaying just comment out the complete tagline code leaving logo2 code where it is
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Two logo's on header

    Get Em Fast
    Thanks I am going to try that today.
    I will let you know how it works for me.
    When you do it that way the image must be in your templates /image dir
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Two logo's on header

    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!

  10. #10
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Two logo's on header

    Quote Originally Posted by kobra View Post
    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 references

    Ahh.......I see the logic behind this..........I agree, it does seem like it would be easier for a ZC newcomer.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v150 Two Logo's?
    By Serious in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Oct 2013, 02:49 AM
  2. Can't reszie the logo header in my template to fit logo image
    By signify in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 1 May 2011, 06:57 PM
  3. Two Different Header two languages
    By PaulaSinner in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Mar 2009, 10:04 PM
  4. Logo with link... Two pages to change?
    By imagehorizons in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Sep 2008, 03:02 PM
  5. Space Between Logo-header and EZ-Pages Header
    By Tig in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jul 2008, 07:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg