-
AuthorPosts
-
February 1, 2022 at 3:50 pm #1338252
Dear Enfold team.
I am about to make a webpage with a lot of pictures inserted in various ‘EasySliders’ on different pages.
I know there is an option under each image to check ‘open in LightBox’. But since there are so many pictures – I was wondering, if there is a way to ‘program’ ALL EasySliders and ALL images to open in a LightBox, without I have to check it for each single image?I hope i makes sense :)
Kind regards, David
–February 2, 2022 at 6:29 am #1338382Hey davidchristensen,
Thank you for the inquiry.
This is possible but you will have to modify the themes/enfold/config-templatebuilder/avia-shortcodes/slideshow/slideshow.php directly and set a default value to the settings. Look for this code around line 781.
$c = array( array( 'name' => __( 'Apply a link to the slide?', 'avia_framework' ), 'desc' => __( 'You can choose to apply the link to the whole image', 'avia_framework' ), 'id' => 'link_apply', 'type' => 'select', 'std' => 'image', 'lockable' => true, 'required' => array( 'slide_type', 'is_empty_or', 'image' ), 'subtype' => array( __( 'No Link for this slide', 'avia_framework' ) => '', __( 'Apply Link to Image', 'avia_framework' ) => 'image' ) ), array( 'type' => 'template', 'template_id' => 'linkpicker_toggle', 'name' => __( 'Image Link?', 'avia_framework' ), 'desc' => __( 'Where should the image link to?', 'avia_framework' ), 'std' => 'lightbox', 'subtypes' => array( 'lightbox', 'manually', 'single', 'taxonomy' ), 'target_id' => 'link_target', 'lockable' => true, 'required' => array( 'link_apply', 'equals', 'image' ), 'no_toggle' => true ) );
We already modified the code, so it is a bit different compare to the actual code in your file. If you noticed, we set the std of the Apply a link to the slide? to image, and the std of the Image Link? settings to lightbox. Also, please note that this modification will affect newly added slideshows in the site.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.