I have a problem.
How to disable the image thumbnail link open in new tab?
Earlier time I managed to disable the big image link with custom css
`
.avia-gallery .avia-gallery-big {
pointer-events: none;
cursor: default;
}
Please advise how I resolve this problem with css.
Thank you
Hey!
Please change your code to following one
.avia-gallery-thumb ,.avia-gallery .avia-gallery-big {
pointer-events: none;
cursor: default;
}
Best regards,
Yigit
Hi Yigit,
Thank you but it seems all thumbnails become static.
What I want to achieve is, when I click the thumbnails, I can see large image above, and they can not be opened in new window or tab.
Can you please recheck?
Regards
Eric
Hi,
Please try adding following code to Functions.php file in Appearance > Editor
function remove_href_attr(){
?>
<script>
jQuery(window).load(function(){
jQuery('#top #wrap_all .avia-gallery .avia-gallery-thumb a').removeAttr('href');
});
</script>
<?php
}
add_action('wp_footer', 'remove_href_attr');
Best regards,
Yigit
It works!
Thank you very much!