-
AuthorPosts
-
July 31, 2018 at 8:59 pm #992071July 31, 2018 at 11:16 pm #992117
Hey andrea_92,
Try adding the following to quick css:
.av-masonry-entry{ pointer-events:none!important; }Best regards,
Jordan ShannonJuly 31, 2018 at 11:52 pm #992123Thanks for this but i must keep hover effect with title and with this code the title disappear
August 2, 2018 at 5:13 am #992673Hi,
Did you change the page id selector to “.page-id-42”? Please set the account to admin so that we can check the settings or edit the file.
Best regards,
IsmaelAugust 2, 2018 at 9:21 am #992769Hi, I change the id selector “.page-id-23” (the id that i found for this page). I changed the account to admin. I added the code at the bottom of file functions.php
-
This reply was modified 6 years, 8 months ago by
andrea_92.
August 3, 2018 at 9:24 am #993116Hi,
Thanks for the update.
I’ve added a custom script to remove the masonry items’ link and prevent the default behavior on click. You can add this on the Quick CSS field if you want to display the default cursor when you put the pointer over the items.
.av-masonry-entry { cursor: default; }This is the script.
add_action('wp_footer', 'ava_remove_masonry_link', 9999); function ava_remove_masonry_link() { ?> <script> (function($) { var page = $('body').is('.page-id-23'); if(page) { $('.av-masonry-entry').each(function() { $(this).attr('href', '#'); }); $('.av-masonry-entry').on('click', function(e) { e.preventDefault(); }); } })(jQuery); </script> <?php }Best regards,
IsmaelAugust 3, 2018 at 9:27 am #993118Thanks a lot Ismael
August 3, 2018 at 11:25 am #993189Hi,
You’re welcome!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.Thank you for using Enfold :)
Best regards,
Ismael -
This reply was modified 6 years, 8 months ago by
-
AuthorPosts
- The topic ‘Portfolio masonry : remove link’ is closed to new replies.
