Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #551643

    Hi

    I made in Enfold 3X 4 columns and put there Enfold image and text widgets
    Link1:
    some of them are linked and those which are not linked should open as a big image. But if I have only these options

    Lightbox opens a gallery, how can link the image so it opens, like in the wordpress Gallery only that image?
    If you click to the first Image, it opens in a new window but a gallery, 1/8 I want it should open only 1 image

    #553647

    Hi 3DStudio!

    Please try adding following code to Functions.php file in Appearance > Editor

    function add_custom_link_target(){
    ?>
    <script>
    jQuery(window).ready(function(){
    jQuery('.your-custom-class a').removeClass('lightbox-added').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_link_target');

    then turn on custom CSS field for ALB elements – kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and give your gallery a custom CSS class. In example above custom class is ‘your-custom-class’

    Best regards,
    Yigit

    #555403

    thank you for your help.
    I added them into the functions.php but I couldnt find the place of alb Element
    where in Enfold Options can I see that field on the image?

    #557337

    Hey!

    You have to add the code into your functions.php file. Please read the link again and copy the code it gives you into your child theme functions.php file.

    add_theme_support('avia_template_builder_custom_css');
    

    And it will show up in the layout builder so you can add custom classes to your elements.

    Best regards,
    Elliott

    #574598

    hi
    the answer comes a little bit late thanks for your help, custom CSS field for ALB elements is now working but lightbox still opens a gallery not only one image
    if you hit to the first Image Anlageleitern it should open only that Image not a gallery

    I add my admin Login, can you check it for me where I went wrong?

    • This reply was modified 8 years, 2 months ago by 3DStudio.
    #575265

    Hi!

    Wrap that image in a column or a section and set this class to it (to the section/column):

    avia-gallery
    

    Best regards,
    Josue

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