Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #829706

    Very nice Enfold update! Could you help me with captions in the new horizontal gallery element? When opening the images in the lightbox the captions should be displayed under the image. Thank you for assistance!

    #830674

    Hello, I too would like to figure this out. I’m adding captions to all the images in the horizontal gallery, but they’re not showing. How can I make them show? Thank you.

    #831482

    Hi,

    Thank you for using our theme.

    Currently this is not possible, but for the next release I added an option to choose what image text you want to display below the images (defaults to title).

    Meanwhile you have to change the core file enfold\config-templatebuilder\avia-shortcodes\gallery_horizontal.php.

    Around line 330 you find the following code:

    
    
         $output .= "<a href='{$lightbox}'  class='av-horizontal-gallery-link' {$display_char}>";		
    
    

    Replace this line with:

    
    
       $output .= "<a href='{$lightbox}'  class='av-horizontal-gallery-link' {$display_char} title='{$attachment->post_excerpt}'>";
    
    

    This should display the captions below the lightbox image.

    Best regards,
    Günter

    • This reply was modified 7 years, 3 months ago by Günter.
    #831515

    Thank you very much, Günter! The code works as expected!

    #831765

    Hi there!

    Hi! We’re glad that Günter was able to help you! Do you need further assistance with this, or can we close this thread?

    Thank you for using Enfold.
    Cheers!
    Sarah

    #831777

    Hi Sarah, captions in horizontal galleries are displayed now, so please close this thread!

    #831784

    That’s great. :)

    For any other questions or issues, feel free to post them here on the forum and we will do our best to assist you.

    For your information, you can also take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/

    We’d also appreciate it if you can take a moment to review our theme if you haven’t already. https://themeforest.net/downloads

    Thank you for using Enfold.
    Cheers!
    Sarah

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Horizontal Gallery – how to display captions?’ is closed to new replies.