Thread: Second Logo

Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2011
    Posts
    8
    Plugin Contributions
    0

    customer issue Second Logo

    Hi

    How can i achieve adding second logo to the far right header section, as shown in the picture below ( the empty space to the right ) the logo will be for different purpose and will link to contact us page!


    please assist me

    Thank you
    Adam
    Attached Images Attached Images  

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Second Logo

    well you need to modify tpl_header.php in your template >> common folder.

    you might need to define div to be aligned right and insert the img tag in it
    Believe it or not But My existence is illusional

  3. #3
    Join Date
    Dec 2011
    Posts
    8
    Plugin Contributions
    0

    customer issue Re: Second Logo

    Sorry, i am newbie on this site!
    can you please explain in details how i can do that?

    Thank you
    Adam

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Second Logo

    First, make a COPY of the following file on your hard drive. So this by sending a copy FROM the server TO your hard drive:

    includes/templates/WHATEVER-YOUR-TEMPLATE/common/tpl_header.php

    Using a PLAIN TEXT EDITOR such as CRIMSON EDITOR, open the copy on your hard drive for editing:

    FIND:
    PHP Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET2))) { ?>
        <div id="taglineWrapper">
    <?php
                  
    if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
                  
    }
    ?>
    <?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>
    <?php // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    Under the line:
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

    Add this directly underneath it:
    <div id="logoTwo"><a href="index.php?main_page=contact_us"><img src="includes/templates/WHATEVER-YOUR-TEMPLATE/images/logo-two.jpg" alt="contact us" /></a></div>

    save the file on your hard drive.

    NOW... create your CONTACT US image, and call it logo-two.jpg

    FTP this image to:

    includes/templates/WHATEVER-YOUR-TEMPLATE/images/

    Go back to your SERVER (via FTP) and BACKUP the original tpl_header.php by re-naming it tpl_header.php.BAK

    Then, send your edited copy to the server, so that it is in:
    includes/templates/WHATEVER-YOUR-TEMPLATE/common/

    -----------------------------------

    As you now have a DIV with an ID = "logoTwo", you can use CSS to position this DIV... something like:

    #logoTwo {float: right;}

    ... may help...
    20 years a Zencart User

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

    Default Re: Second Logo

    Thank you very much, it works perfect.
    i really appreciate your assistance.

 

 

Similar Threads

  1. HELP!!!!!....Need to center My logo hench logo.gif on my main page
    By Robert Cooper in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jul 2013, 01:33 PM
  2. Hiding a second currency when the second currency is selected as primary.
    By gamestuff in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 30 Nov 2009, 09:01 PM
  3. Trust Logo, SSL Logo and Auth Net Logo
    By MagicMan in forum General Questions
    Replies: 4
    Last Post: 28 Jan 2009, 06:19 PM
  4. Adding a second logo on the right
    By spikeycactus in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Sep 2008, 10:47 PM
  5. How do I add a second logo to the header?
    By gaukler in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 25 Nov 2006, 05:22 AM

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