Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    project index disable click (keep image hover)

    General Discussion
    2
    6
    48
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gustavwiese last edited by

      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

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        hey try this:

        http://laythemeforum.com:4567/topic/8245/index-how-to-disable-links-yet-keep-image-hover?_=1682521934264

        G 1 Reply Last reply Reply Quote 0
        • G
          gustavwiese @arminunruh last edited by

          @arminunruh Maybe i'm missing the point, but i just tried to follow and still didn't work. :(

          1 Reply Last reply Reply Quote 0
          • arminunruh
            arminunruh Global Moderator last edited by

            alright alright

            mh can u send a link?

            G 1 Reply Last reply Reply Quote 0
            • G
              gustavwiese @arminunruh last edited by

              @arminunruh https://workbybrint.com/

              1 Reply Last reply Reply Quote 0
              • arminunruh
                arminunruh Global Moderator last edited by arminunruh

                <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)

                Screenshot 2023-04-27 at 11.44.48.png

                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;
                }
                
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Post a link to where the problem is if possible, please <3
                I don't answer or check forum DMs, please just post on the forum.
                Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

                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

                Thanks!

                Online Users

                Recent Topics

                • Search as icon instead of text?

                • FILTER Categories showing all projects

                • H

                  Vimeo embed with autoplay and loop is really slow...help!

                • A

                  website not loading on iphone safari

                laytheme.com