Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Additional image box label

    I would like to add some text above the additional product image box to label it just that. "More Photos" "Other Views", something like that to indicate that these images are related to the product above.

    See screen shot to see what I mean.

    Link to teat page:

    http://keepsafeco.com/index.php?main...products_id=92

    How would I do this?
    Thank you
    Attached Images Attached Images  

  2. #2
    Join Date
    Feb 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: Additional image box label

    You will need to modify your tpl_modules_additional_images.php file in the following path:
    \includes\templates\YOUR_CUSTOM_TEMPLATE_DIRECTORY\templates\tpl_modules_additio nal_images.php where YOUR_CUSTOM_TEMPLATE_DIRECTORY is the name of your custom template.
    You should first make a backup of this file before making any changes.
    Highlighted in green is the code you want to insert:

    <div id="productAdditionalImages">
    <h3 class="photo_caption">More Photos</h3>
    <?php
    require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php'); ?>
    </div>

    Then you will need to add the following to your stylesheet:

    .photo_caption {
    margin: 0;
    color: #000;
    font-size: 1.5em;
    text-align: left;
    }

    This is just a sample, you can use whatever styling you need.

  3. #3
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Re: Additional image box label

    Thank you so much jwitt98

  4. #4
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Re: Additional image box label

    I would like to take this a step further and have the box caption read:
    "More photos of PRODUCT_DESCRIPTION" for SEO purposes as this is a header.
    Any help with the code would be appreciated.

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

    Default Re: Additional image box label

    You could use this for the heading:
    PHP Code:
    <h3 class="photo_caption">More Photos of <?php echo $products_name?></h3>

  6. #6
    Join Date
    Apr 2008
    Location
    Boston
    Posts
    148
    Plugin Contributions
    0

    Default Re: Additional image box label

    This forum is awesome!
    Thank you both

  7. #7
    Join Date
    Dec 2006
    Location
    Northwest Connecticut
    Posts
    87
    Plugin Contributions
    0

    Default Re: Additional image box label

    And I'd like to take this even one step further, I'd like to have each additional image have a label. Underneath each additional image appears - "larger image" in place of that or in addition to that I would like to have a label or description of the image. I installed the
    Fual Slimbox (Libhtbox) addon and it is great in many ways, one of the ways is that when you click on the main image or any additional image to see a larger image, you can then click on NEXT or PREV to look at all the images. I need to have the additional image label or description appear in the lightbox. Currently, the product name appears for every image.

    Has anyone done something like this? I've searched the forum, this thread is the clssest I can find to what I need to do. Thanks for this information already here and for any help or direction you can point me to!

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

  9. #9
    Join Date
    Dec 2006
    Location
    Northwest Connecticut
    Posts
    87
    Plugin Contributions
    0

    Default Re: Additional image box label

    THANKS! No, I didn't think to search on titles! As soon as I saw your response I thought I should have, though.... I'm about to download this and try it... I will post the results here, just wanted to say Thank you right away.... Helen

  10. #10
    Join Date
    Dec 2006
    Location
    Northwest Connecticut
    Posts
    87
    Plugin Contributions
    0

    Default Re: Additional image box label

    Hello again, I've downloaded the Additional Image Title addon and looked at the read me instructions and.... don't understand how and where I am to add the title? For each additional image.... and there will be several for many products, I want a title... I've read this several times:

    This checks to see if there is a constant defined for the image and, if so, displays its value either above or below the image; if not, displays just the image as usual.

    Define a constant corresponding to each image, changing /, \, . and - characters to _ characters so the constant name will be acceptable to PHP.

    Do i modify additional_images.php? For each additional image??
    Does anyone have any experience or examples they can provide?
    Thanks...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Additional Image Replacing Existing Image Instead of Adding as a Second Image
    By Allaction in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 30 Apr 2013, 11:56 PM
  2. Dynamically changing form text-box label with Javascript
    By torvista in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Jul 2009, 03:30 PM
  3. Currencies Box title wrapped in label tag
    By nicko2 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 12 Aug 2006, 02:14 PM
  4. Currencies box heading wrapped in label tags
    By nicko2 in forum General Questions
    Replies: 1
    Last Post: 9 Aug 2006, 02:30 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