Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #907634

    Hi, following up on this: https://kriesi.at/support/topic/remove-link-on-portfolio-grid/
    I can’t seem to get it to work.
    Running Enfold 4.2.2 on a test site at the moment.
    I have enabled the “show element options for developers” in the layout builder.
    Then, in the Masonry element, I have:
    “ae-removeportfoliolink” defined for For Developers: Section ID, and
    “.ae-removeportfoliolink .av-masonry-entry { pointer-events: none; }” defined for Custom Css class
    But I still have the links appearing.
    Am I putting the correct code in the correct sections?
    Presumably, having enabled the show element options, then I only need to put stuff specific to the masonry element here and not in the Quick CSS section that’s for more generic stuff?

    #907755

    Hey xavbroadcast,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #907856

    HI Nikko,
    Thanks for the quick response.
    See private content.

    #908020

    Hi xavbroadcast,

    Can you point us to the page where you have this setup?

    Best regards,
    Victoria

    #908098
    This reply has been marked as private.
    #908461

    Hi Xavier,

    Here is the code you can put in your funtions.php

    
    function disable_click_on_masonry(){
    ?>
    <script>
    	$("#top #dessert-tables .isotope-item").click(function(e) { e.preventDefault();});
    </script>
    <?php
    }
    add_action('wp_footer', 'disable_click_on_masonry');
    

    You will need to use a child theme for this code not to be lost on any theme update.

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #908480

    Hi Victoria,

    Thanks for this, but I can’t seem to get it to work. I changed the code you proposed to #flavours as that’s the masonry table I didn’t want the links to work, but no effect. Just for clarity, it’s the three “flavour” portfolio items I don’t want to be clickable – “lemon drizzle sponge cake”, “Stawberry & Champagne” and “Supreme Vanilla”.

    Am I right in that there’s been a change in Enfold meaning it can no longer be done with CSS alone which was the way the previous post did it? Having to do it via functions.php isn’t a massive problem (will ensure a Child theme is in place for the final install), it’s more just out of curiosity :)
    Thanks again for your help so far.

    #908967

    Hi,

    Ok, I was thinking of a different element.
    Try this code:

    
    function disable_click_on_masonry(){
    ?>
    <script>
    	$("#top #av-masonry-5 .isotope-item").click(function(e) { e.preventDefault();});
    </script>
    <?php
    }
    add_action('wp_footer', 'disable_click_on_masonry');
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #909066

    Ahh, yes, I see the av-masonry-5 div ID.
    Seems to work now. I still have the hand pointer and the link shown at the bottom, but no effect on clicking. That’ll do for now. Thank you :)

    #909095

    Hi,

    Glad that Victoria helped you. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Remove link on portfolio element again’ is closed to new replies.