Hello how can i set links to open in a new window? Now it opens in the same window if i click one gallery item.
Thank you for helping!
Hi Luisgasser!
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 – http://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’
Cheers!
Yigit
Thank you very much – it works great :-)
Hi!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Happy holidays :)
Cheers!
Yigit