Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default adding class to additional images

    Hi

    How to add a class to additional images.
    I guess it is done in the modules/additional_images.php as in the templates/tpl_modules_additional_images.php it calls only the columnar display.
    While at it I tried removing the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT snips, but when checking on the browser they seem to still be there.

    Thank you

    It's local install of 1.55d

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: adding class to additional images

    The 5th parameter to zen_image() is for passing extra HTML tags.

    Code:
    zen_image('file_name.jpg', 'title/alt text', height, width, ' class="moreimages"');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: adding class to additional images

    Thank you.

    OT
    I apologize for asking it here, but would you kindly take a look at:
    https://www.zen-cart.com/showthread....t_info_display

 

 

Similar Threads

  1. adding additional images
    By Snaggle in forum General Questions
    Replies: 1
    Last Post: 21 Jun 2011, 03:12 AM
  2. Adding Additional Images to javascript
    By GodfatherAntiques in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2011, 02:54 AM
  3. Adding Additional Images to Product
    By cpaulson in forum Setting Up Categories, Products, Attributes
    Replies: 44
    Last Post: 16 Nov 2010, 04:32 AM
  4. Adding text to additional images individually
    By palomapottery in forum Templates, Stylesheets, Page Layout
    Replies: 26
    Last Post: 14 Oct 2010, 04:17 AM
  5. Adding additional Images
    By ameliesattic in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 16 Jun 2010, 01:47 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR