-
AuthorPosts
-
January 29, 2020 at 9:36 am #1179326
Aurélien
GuestHi guys,
Would like to know how to disable the masonry gallery links from my enfold website. I’ve tried some CSS with :
{pointer-events : none} and it works well but it remove the hover effects.
In order to still get the hover, I’ve tried some jquery from Mike, in my functions.php (child-theme), none of them are working because of the issue “ReferenceError: Can’t find variable: jQuery” :
function remove_masonry_link(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘#top.page-id-184 a.av-masonry-entry’).removeAttr(‘href’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘remove_masonry_link’);===================================== AND THE OTHER ONE :
function remove_link_redirect(){
?>
<script>
(function($){
$(document).ready(function(){
$(‘#top.page-id-184 .av-masonry-entry’).click(function(event){
event.preventDefault();
});
});
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘remove_link_redirect’);Do you know why it’s not working ?
Best regards
January 29, 2020 at 5:22 pm #1179479Hey,
Thanks for contacting us!
Please go to Enfold theme options > Performance and disable “Load jQuery in your footer” and check if that helps.
If that does not help or if you have any other questions or issues, please register to our support forum – https://kriesi.at/support/register/ and start a new thread under Enfold sub forum :)
Cheers!
YigitJanuary 30, 2020 at 5:58 pm #1180044Hi Yigit,
It was already disable.
Regards
January 31, 2020 at 11:49 am #1180241Hi manyfl2or,
For technical support please register here kriesi.at/support/register with your item purchase code .
Go to https://kriesi.at/support/ select the theme you purchased bookmark the URL.
Example: https://kriesi.at/support/enfold
Scroll to the bottom of the page to open a new ticket.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.
