Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2009
    Posts
    5
    Plugin Contributions
    0

    Default How to add second header image???

    After much searching I cannot find out how to add a second image to my header.

    Any help would be great!
    Thanks

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add second header image???

    More information on where you want this image and how you want it to behave would be great:) Also a link to see what you have so we can give specific advice.
    Do you want the second image to have a particular relationship with the first image?

  3. #3
    Join Date
    Dec 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: How to add second header image???

    I would like the image close to the right side and it would be a clickable link. I don't think any relationship between the two are needed, but I'm not exactly sure how a relationship works either.

    http://www.exlineusergroup.com/index.php

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add second header image???

    There wouldn't be any relationship between the images unless it was specifically coded in; the important info is that you want a clickable link. You would put that in /includes/templates/your_template/common/tpl_header.php, just after this:
    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
                  
    }
    ?>
    Something like
    PHP Code:
    <div id="logo2"><?php echo '<a href="your_new_url">' zen_image($template->get_template_dir('yournewimage.gif'DIR_WS_TEMPLATE$current_page_base,'images'). '/' 'yournewimage.gif''Your New Alt Text') . '</a>'?></div>
    Make a rule for
    #logo2 {}
    in your stylesheet to control the position of the new image.

  5. #5
    Join Date
    Dec 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: How to add second header image???

    Thanks for the help, I have my image up and I m now trying to figure out how I get the second image to link to a web page other than the the page the original image is linked to. When I add a link in the code and then click the new image, the URL is showing the original image link with my new link all ran together.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add second header image???

    We need to see exactly what you did with the file to know what is wrong and how to fix it. Post your code between [php] and [/php] tags.

  7. #7
    Join Date
    Dec 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: How to add second header image???

    <?php
    }
    ?>

    <div id="logo2"><?php echo '<a href="www.exline-inc.com">' . zen_image($template->get_template_dir('Exline_Transparent.gif', DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . 'Exline_Transparent.gif', 'Your New Alt Text') . '</a>'; ?></div>


    <div id="logo3"><?php echo '<a href="www.exline-inc.com">' . zen_image($template->get_template_dir('Exline Parts.1.gif', DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . 'Exline Parts.1.gif', 'Your New Alt Text') . '</a>'; ?></div>


    <?php

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to add second header image???

    Your two new logo links are not complete http urls, so the standard HTML link handling adds them to the page base. Make each of them a full url like "http://www.exlineusergroup.com/", or else a relative url like "index.php?main_page=contact_us" or "index.php?main_page=index&cPath=23" if you want to link to a page in your site.

  9. #9
    Join Date
    Dec 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: How to add second header image???

    Thanks so much for the obvious fix that I couldn't seem to figure out!

 

 

Similar Threads

  1. v151 Adding second image to header
    By LeoJ in forum General Questions
    Replies: 5
    Last Post: 8 May 2013, 08:04 PM
  2. Can I Add second image to main Icon image
    By touchclothing in forum General Questions
    Replies: 4
    Last Post: 30 Nov 2009, 09:19 PM
  3. How do I add second link to header image?
    By SalonRoyalty in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 5 Mar 2009, 06:16 PM
  4. 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