project index disable click (keep image hover)
-
hello,
Is it possible to disable click for the project index?
I want to keep the imagehover..projectindex-project-link[data-id="123"]{
pointer-events: none;
}This disables both things.
Is there a way to do this?
THANKS -
-
@arminunruh Maybe i'm missing the point, but i just tried to follow and still didn't work. :(
-
alright alright
mh can u send a link?
-
-
<script> jQuery(document).on('.projectindex-project-slug-stageclothing a', 'click', function(e)){ e.preventDefault(); e.stopPropagation(); return; }); </script>
look, u need to look at the html code and find the slugs, i underlined them here
(in google: right click → inspect element)then use the code above
so for .projectindex-project-slug-stageclothing and .projectindex-project-slug-iconic-calender
it would be:
<script> jQuery(document).on('.projectindex-project-slug-stageclothing a, .projectindex-project-slug-iconic-calender a', 'click', function(e)){ e.preventDefault(); e.stopPropagation(); return; }); </script>
and css:
.projectindex-project-slug-stageclothing a, .projectindex-project-slug-iconic-calender a{ cursor: default; }
I don't answer or check forum DMs, please just post on the forum.
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. When using a WordPress Cache plugin, disable it or clear your cache.
Now see if your problem solved itself.
Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it