-
AuthorPosts
-
December 13, 2015 at 2:22 pm #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 imageDecember 16, 2015 at 1:46 pm #553647Hi 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,
YigitDecember 19, 2015 at 1:57 pm #555403thank 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?December 24, 2015 at 4:40 am #557337Hey!
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,
ElliottJanuary 29, 2016 at 3:34 pm #574598hi
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 galleryI add my admin Login, can you check it for me where I went wrong?
- This reply was modified 8 years, 11 months ago by 3DStudio.
January 31, 2016 at 11:44 am #575265Hi!
Wrap that image in a column or a section and set this class to it (to the section/column):
avia-gallery
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.