Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #992071

    I have the same problem of this post. I added that code in my functions.php and I changed the page id but nothing.

    • This topic was modified 6 years, 8 months ago by andrea_92.
    #992117

    Hey andrea_92,

    Try adding the following to quick css:

    .av-masonry-entry{
    pointer-events:none!important;
    }

    Best regards,
    Jordan Shannon

    #992123

    Thanks for this but i must keep hover effect with title and with this code the title disappear

    #992673

    Hi,

    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,
    Ismael

    #992769

    Hi, 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.
    #993116

    Hi,

    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,
    Ismael

    #993118

    Thanks a lot Ismael

    #993189

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Portfolio masonry : remove link’ is closed to new replies.