Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    139
    Plugin Contributions
    0

    Default Re: Clickable Background Image - How To?

    Quote Originally Posted by stiggy100 View Post
    All I did to do this was install this module from the zen team:

    http://www.zen-cart.com/index.php?ma...roducts_id=345

    Follow the instructions. Once it is installed change this in your tpl_header.php from:

    <div id="navMainCartSummary"><?php require(DIR_WS_MODULES . 'sideboxes/cart_summary.php'); ?></div>

    to:

    <div id="navMainCartSummary"><a href="https://www.yourshoppingcarturl.com"><img class="cartIcon" src="includes/templates/YOUR_TEMPLATE/images/cartheader.gif"><?php require(DIR_WS_MODULES . 'sideboxes/cart_summary.php'); ?></a>

    Then you add .cartIcon {} to position the image.

    Hope this helps
    Cool! As mentioned, everything I've found on the forum largely deals with header logo image maps, and doesn't really address any secondary images in the header, that I could tell.

    Plus, I have a custom template that defined the shopping cart image as a background:url in the CSS file, which must really bury the image, as none of the developer tools are even able to report on it.

    I'll definitely give this a try - seems crazy not to be able to click on the actual cart image.

    Thanks!
    -DBB1

  2. #2
    Join Date
    Jan 2009
    Posts
    310
    Plugin Contributions
    0

    Default Re: Clickable Background Image - How To?

    If you follow as the above - it should do the trick. To be sure it is what you want y site is in my signature and that is what you'll get (the cart is in the top right hand corner of the header)

    Might be best to check before you go to the effort.

    If you have any problems, post back up and I'll keep an eye out...
    Steve
    Site Under Construction: adatglobal.com

 

 

Similar Threads

  1. Clickable Background image
    By Lazar in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Feb 2017, 02:42 PM
  2. v150 Re: Can I make background Image clickable link?
    By scott_ease in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 Nov 2014, 08:40 AM
  3. Can I make background Image clickable link??
    By gaffettape in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 21 Apr 2010, 12:40 AM
  4. add background image to a attribute then have that background image act as hyperlink
    By sike1234 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Nov 2008, 05:38 PM
  5. How to Change Background Colour to Background image
    By ittybittykitty in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Aug 2008, 04:36 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