Tagged: ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #683096

    Hi,

    I have a problem or feature request with the Avia image element. I would like to see a description below the image in the lightbox. Is this possible?

    And: I don’t see an option to open a different image in the lightbox. I have to versions of an image: one small image (353x229px) I would like to see in my content and a large version (1000x667px) of the image I would like to display in the lightbox. I cannot use the wordpress image presets because they alter the image proportions. The change the proportions to 4:3 ratio.

    Any recommendations?

    • This topic was modified 8 years, 3 months ago by Metasequ0ia.
    #683147

    I did some further investigation.

    There is a div below the image in the lightbox <div class=”mfp-title”></div>. So it seems that it is somehow possible to put an title or description there.

    And I found this thread https://kriesi.at/support/topic/lightbox-titles-captions/#post-650091 with some code to achieve this. I did the suggested edits to the avia.js file but nothing changed. Maybe things have changed in the latest Enfold release?

    #684933

    Hi support team,

    any ideas on this subject? I would love to have this answer solved in the next days because of a project deadline…
    Thanks for your efforts!

    -Martin

    #685066

    Hi,

    Can you please post the link to your page?
    To add titles to your images in lightbox, please go to Media Library and edit titles and alt tags

    Best regards,
    Yigit

    #685160

    Hi Yigit,

    I already did as you advised but there are no title or description below my lightbox image.

    View post on imgur.com

    What can I do?

    #685182

    Hi!

    Do you mind creating a temporary admin login and FTP logins and posting them here privately so we can look into it?

    Cheers!
    Yigit

    #685279

    Please see Login credentials in Private Content box. Thanks!

    #686787

    Any progress on this?

    #687844

    Hey!

    It’s not working because the following script removes every title attribute of the link and image tags in the page.

    //damit bei Mouseover auf Galeriebildern nicht der Dateiname angezeigt wird
    function add_custom_tooltip(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('a').removeAttr('title');
    jQuery('img').removeAttr('title');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_tooltip');

    Regards,
    Ismael

    #687929

    Hi Ismael,

    great find! Thanks a lot! Titles appear now below lightbox imnage.

    What about my second question? How can I have a different image in the lightbox?

    -Martin

    #688063

    Hi!

    The lightbox script is using the large thumbnail. You adjust the size of the thumbnail in the Settings > Media panel. Don’t forget to regenerate the thumbnails afterwards. https://wordpress.org/plugins/force-regenerate-thumbnails/

    Cheers!
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.