Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #487687

    Hi,

    I cannot find the setting for showing the image name in the light-box on a product detail page.
    http://blog.speksnijder.com/product/25-zitsbank-leolux-enora/

    A normal page with light-box does show the image name.
    http://blog.speksnijder.com/nieuws/rolf-benz-cara/

    What to do about this?

    #487712

    try to add on your child-theme functions.php:

    function gallery_title_fix(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
          $('.lightbox-added img').each(function(){
                var lin = $(this).attr('alt');
                $(this).attr('title',lin);
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'gallery_title_fix');

    this will show instead of the title the description of the media set on Media – i guess you will find similar things for alt Attribut

    #487718
    hm there is nothing in it 
       <div class="mfp-bottom-bar">
          <div class="mfp-title"></div>
          <div class="mfp-counter">5 / 11</div>
    </div>

    allthough there is a title ! ?

    #488959

    Hey!

    Your talking about the product featured image correct? I see the text fine on my end. Did you get it fixed?

    Cheers!
    Elliott

    #488968

    Yep, we did get it fixed!

    Thanks!

    and Cheers, even though I do not know where we toast for. :-)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘image name in lightbox on productdetail page’ is closed to new replies.