Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1151825
    Guma
    Participant

    Hello, i have some pages where envira gallery is used.
    I would like to remove the Image title on hover and i would like to have the images not clickable.

    1, i used this code .envira-gallery-item-inner .title { opacity: 0; } in X style.css as mentioned on evira gallery – not worked

    2, I have used this code from one of the topic here in global X css and not worked…
    .gallery-item img {
    cursor: default;
    pointer-events: none;

    }

    Could you please help since i am lost?

    #1151831
    Guma
    Participant
    This reply has been marked as private.
    #1151895
    Nabeel A
    Moderator

    Hi again,

    Thank you for writing in! Can you please share the page URL so we can take a look?

    Thanks!

    #1152066
    Guma
    Participant
    This reply has been marked as private.
    #1152109
    Thai
    Moderator

    Hi There,

    #1] Please add the following CSS under Customizer > Custom > Global CSS:

    a.envira-gallery-link {
        cursor: default;
        pointer-events: none;
    }

    #2] Please add the following code under Customizer > Custom > Global Javascript:

    jQuery(document).ready(function($) {
    	$(".envira-gallery-link, .envira-gallery-link img").attr('title', '');
    });

    Hope it helps 🙂

    #1152121
    Rupok
    Member

    Hi there,

    I can’t see any title on hover so your first code seems working. And you can add the below code to make it not clickable :

    .envira-gallery-link {
      pointer-events: none;
    }

    Hope this helps.

    #1152773
    Guma
    Participant

    Thanks for your time anh help.
    The codes you provided helped.

    I restarted browsers, ckeared the cache and it is working.
    Still on my iphone, i can tap the images and show them.
    Strange…

    Br
    Peter

    #1152879
    Rupok
    Member

    Hi Peter,

    Make sure to clear cache from mobile as well and try refreshing. The link should not work on mobile either.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1151825 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>