Tagged: Masonry Gallery
Hi, i would like to open links in a new tab with gallery masonry but only a specific one gallery. I found this code but it applies to all gallery masonry:
function add_custom_target(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘.av-masonry-container a ‘).attr(‘target’,’_blank’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_target’);
How to identifies a specific one gallery?
Thanks,
Thanks Victoria!
Hi,
Great, I’m glad that Victoria could help you out. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
You can close it.
Thanks,
Hi mllibre,
Great :) We are closing the thread.
Best regards,
Victoria