Hi,
In the link in PC below I am wanting to ‘nofollow’ the linked images to a new tab. Presently they only open in the same window which is not so great :(.
Is this possible?
Thanks
John
Hey John,
Which elements are you referring to?
Best regards,
Victoria
Hi Victoria,
Yes that is coorect. The supplier images on the page that are hyperlinked (masonry gallery).
Cheers
John
Hi John,
Try adding this code at the bottom of your functions.php file:
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');
Hope it helps.
Best regards,
Nikko
Awesome Nikko. Did the trick.
Please close thread.
Cheers
John