make a project index unclickable
-
Dear Susan
@susan39
By nature the project index is for accessing Project's but this is possible with CSS.
Best
Richard
-
you can give the projectindex a class of "noclick"
then in lay options -> custom css:
.noclick{ pointer-events: none!important; }
-
Hey @arminunruh
EDIT: sorry, I saw that you proposed a solution in another thread, my bad!
do we have any updates about this feature?
The .noclick CSS class tricks works, but prevents from having the image hover feature on projects.
Having a huge list of projects that we don't necessarily want to have corresponding pages to, we'd love to have the options of just listing elements with the image hover function.
Is there any new way of implementing this or can it possibly be done in the future?
Thank you!
-
hey! yea i think i should add a feature for this one day
-
Hi Armin,
Your solution only works for the entire Project Index. My question was whether it is possible to make individual projects unclickable.
Thank you :) -
<script> var ids_to_ignore = [2817, 2829]; ids_to_ignore.forEach(function(id){ jQuery(document).off("click", 'a.projectindex-project-link[data-id="'+id+'"]'); }) </script>
this will make single projects in a projectindex unclickable. but it will still have the imagehover addon working. "ids_to_ignore" is a list of project ids you want to have not clickable.
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it