Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    58
    Plugin Contributions
    0

    Default adding link to header image

    My future store is located at http://store.gardenofshadows.ca/. I would like to add a link to the header image, so that when someone clicks on the image, it takes them to a specific url. How can I do that? The style sheet is rather different from WordPress and phpBB so I'm a little lost. I've tried searching but didn't find a response anywhere and I have ordered the Zen Cart manual but am awaiting delivery.

    I appreciate any help you can give me. :)

  2. #2
    Join Date
    Sep 2010
    Posts
    58
    Plugin Contributions
    0

    Default Re: adding link to header image

    Sorry, to clarify things, I should add that I would like to link my header image to an external link, my site homepage, www.gardenofshadows.ca, not to a page in my store.

  3. #3
    Join Date
    Sep 2010
    Posts
    58
    Plugin Contributions
    0

    Default Re: adding link to header image

    Not intending to bump but just wondering if I posted this in the wrong section perhaps?

  4. #4
    Join Date
    Oct 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: adding link to header image

    Quote Originally Posted by Nyx1961 View Post
    My future store is located at http://store.gardenofshadows.ca/. I would like to add a link to the header image, so that when someone clicks on the image, it takes them to a specific url. How can I do that? The style sheet is rather different from WordPress and phpBB so I'm a little lost. I've tried searching but didn't find a response anywhere and I have ordered the Zen Cart manual but am awaiting delivery.

    I appreciate any help you can give me. :)
    Hi Nyx1961.

    Did you manage to sort this out as it's relatively easy.

    You need to edit tpl_header.php which you can find in includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    Look for the text below this <!--bof-branding display-->
    and edit it accordingly.

  5. #5
    Join Date
    Sep 2010
    Posts
    58
    Plugin Contributions
    0

    Default Re: adding link to header image

    Quote Originally Posted by dalem View Post
    Hi Nyx1961.

    Did you manage to sort this out as it's relatively easy.

    You need to edit tpl_header.php which you can find in includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    Look for the text below this <!--bof-branding display-->
    and edit it accordingly.
    Thanks for responding, Dalem. I'm not sure exactly what to add/remove/edit in the code to have my header image link to my site. The code is pasted below. I hope someone wouldn't mind helping me with this, please. I'm a bit lost.

    Code:
    <!--bof-branding display-->
    <div id="<?php
    $page = $_GET['main_page'];
    $cPath = $_GET['cPath'];
     if ($page == "index" && $cPath < 1 )
    { echo "logoWrapper"; }
    else
    { echo "logoWrapper".rand ( 1 , 6 ); }
    ?>">
    
    <?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 != '') {
    ?>
    <?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 ?>
    
    <?php if ($_SESSION['customer_id']) { ?>
    <div class="my-acct"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></div>
    <?php } ?>
    </div>
    
    
    
    <!--eof-branding display-->

  6. #6
    Join Date
    Sep 2010
    Posts
    58
    Plugin Contributions
    0

    Default Re: adding link to header image

    I'm still really stuck with this. My futute-store is http://www.gardenofshadows.ca/ and the template I used for it is http://(sorry, site offline)/1-3-9d/...wist_of_nature. This template used a half-dozen header/logo images but in my case, I made them all identical, so it would be safe to use just one of them. In any event, I don't know how to do this or how to insert a link in my image. I've tried the usual way
    Code:
    <a href="http://www.gardenofshadows.ca" target="_blank">
    <img src=http://www.gardenofshadows.ca/includes/templates/twist_of_nature/images/header.jpg" width="900" height="200" />
    </a>
    but it made the rest of my site alignments go out of whack. I've really tried but just can't get it to work. I'd really appreciate some help. Please.

  7. #7
    Join Date
    Sep 2009
    Posts
    14
    Plugin Contributions
    0

    Default Re: adding link to header image

    NYX1961,

    Greetings. I realize this is WAAAAAY late but did you ever get your problem solved with putting your main URL in the header logo link?

    I had the same problem and stumbled upon this thread. Dalem's path was just a bit off. It should read:

    includes/templates/template_default/common/tpl_header.php.

    Under the <!--bof-branding display--> line is a line that reads, in part:

    <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">

    Change that to read:

    <a href="http://www.gardenofshadows.ca">

    and save the file. That worked for me anyway but you might want to save a copy of the original code just in case.

    Cheers,

    --Allen

  8. #8
    Join Date
    Sep 2010
    Posts
    58
    Plugin Contributions
    0

    Default Re: adding link to header image

    Thanks Allen! I never did get that issue resolved and it was a pleasant surprise to see your response. I appreciate the help.

 

 

Similar Threads

  1. adding a link to header image
    By Steven Eserin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Jan 2013, 07:06 PM
  2. v151 Adding an image with link to header.
    By PetleyJ in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Sep 2012, 09:50 PM
  3. Adding Additional Link to Header
    By Psykryph in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Aug 2011, 08:39 AM
  4. Adding Link to Header
    By jhaydon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Apr 2011, 02:01 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