-
AuthorPosts
-
February 5, 2018 at 3:07 am #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?February 5, 2018 at 6:32 am #907755Hey xavbroadcast,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- 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 ). - Click ” Submit “.
- 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,
NikkoFebruary 5, 2018 at 11:22 am #907856HI Nikko,
Thanks for the quick response.
See private content.February 5, 2018 at 2:57 pm #908020Hi xavbroadcast,
Can you point us to the page where you have this setup?
Best regards,
VictoriaFebruary 5, 2018 at 5:01 pm #908098This reply has been marked as private.February 6, 2018 at 11:05 am #908461Hi 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,
VictoriaFebruary 6, 2018 at 11:27 am #908480Hi 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.February 7, 2018 at 9:07 am #908967Hi,
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,
VictoriaFebruary 7, 2018 at 12:21 pm #909066Ahh, 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 :)February 7, 2018 at 12:58 pm #909095Hi,
Glad that Victoria helped you. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Remove link on portfolio element again’ is closed to new replies.