Hello
please add this setting in next updates :
choice for target : same window or new window above field Link portfolio item to external URL
it will be helpfull – thxs
have a nice day
for now, i put this code in Enfold Settings / Google Services / Analytics tracking code
is it a good solution ?
<script type = “text/javascript”>
jQuery(‘.av-masonry-container a’).attr(‘target’, ‘_blank’);
</script>
Hi,
It’s not a good solution, you might want to refer to this thread: https://kriesi.at/support/topic/adding-custom-jquery-script-to-child-theme/
Best regards,
Nikko
thxs for your quick response
i put this in my function.php file
function add_custom_script(){
?>
<script>
jQuery(‘.av-masonry-container a’).attr(‘target’, ‘_blank’);
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_script’);
but _blank opening is NOT effective
what doid i miss ?
thxs for helping
Hi,
Please use the code as following
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery('.av-masonry-container a').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Best regards,
Yigit
Perfect – thxs
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 :)
Best regards,
Yigit