Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Adding a class to an attribute image based on the attribute name?

    I'm trying to figure out a way to use CSS Sprites for my attribute thumbnail images.

    To do that, I believe I'll need to:

    1) create a CSS class for each attribute;
    2) Somehow tag the <img src=""> code for each attribute thumbnail with an appropriately named class

    <img class="attribute_name" src="...>

    Can someone point me to which template file outputs the attribute thumbnails and what I might use for code to insert that class?

    Thanks,

    John

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding a class to an attribute image based on the attribute name?

    That would be done in your /includes/modules/attributes.php file.

    copy that file to /includes/modules/YOUR_TEMPLATE folder

 

 

Similar Threads

  1. v151 attribute image displays with attribute name
    By kencor1 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Oct 2013, 09:44 PM
  2. v151 How do I remove the option name below the attribute image?
    By angeleam in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Aug 2013, 06:42 PM
  3. Replies: 5
    Last Post: 2 Jul 2012, 10:45 PM
  4. How to associate an image with an attribute name instead of an attribute value?
    By ibuttons in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Feb 2011, 07:22 PM
  5. Change the product image based on attribute
    By calico in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Sep 2010, 04:33 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