Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1394506

    Hi,

    I would like remove the alt image name in gallery masonry.
    I have try this but doen´t works.

    Could you help me?

    Thanks advance,

    Antonio.

    #1394525

    well – in principle it also works via the Gallery ALB element itself, but you have to be aware that here it is not like with an Image ALB element, where you can only decide for an alternative entry here. If you enter the Alt Tags here in the Gallery, they will be changed in the Media Library, and that means globally.

    #1394531

    Hi Guenni007,

    Yes I know but the problem is we need the tittle to show the name under the image.
    We need remove the name label only when the mouse is on the image.
    Could you help me?
    Many thanks,

    BR,

    Antonio.

    #1394546

    it is always the title what is shown on hovering. this is not an enfold feature – it is simple browser behavior.

    could you post a link to your gallery?

    or do you mean the lightbox bottom info – even there you have title as default – but you can switch to description ( title as fallback)

    there are functions.php snippets to show on that lightbox the alt tag.

    #1394760

    Hi Guenni007,

    In private post the gallery.
    I had set no text in lightbox info.
    The idea is remove the banner that appear in the image roll up but we need the name in the inside gallery under the image.

    BR,

    Antonio.

    #1394763

    sorry – no private Content for me ( participant as you are )

    #1394764

    Hi Guenni,

    It’s the link in private data.
    Did you see?

    Thanks advance,

    Antonio.

    #1394792

    private content is only visible for mods / devs – so : not for me – so you have to wait.

    #1394984

    Hi 95mc,

    Please try to use this code: (based on Guenni007’s code in this thread: https://kriesi.at/support/topic/issue-with-lightbox-image-titles/#post-1356119 I just added .av-masonry-image-container in the list of elements)

    function temporary_removal_title_tags(){
    ?>
    <script>
      window.onload = function() {
          var links = document.querySelectorAll('a, img, .av-masonry-image-container');
          for (var i = 0; i < links.length; i++) {
              var link = links[i];
              link.onmouseover = function() {
                  this.setAttribute("data-tooltip", this.title);
                  this.title = "";
              };
              link.onmouseout = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
              link.onmousedown = function() {
                  this.title = this.getAttribute("data-tooltip");
              };
          }
      };
    </script>
    <?php
    }
    add_action('wp_footer', 'temporary_removal_title_tags');

    Hope this helps.

    Best regards,
    Nikko

    #1395119

    Thanks Guenni07 and Nikko,

    Sorry, where I must add the code?

    Thanks,

    BR,

    Antonio.

    #1395127

    Hi Antonio,

    You can go to Appearance > Editor and add the code to functions.php file of your child theme :)

    Best regards,
    Yigit

    #1395187

    Great! Works perfect
    Many thanks,

    BR,

    Antonio

    #1395226

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1395342

    Hi Rikard,

    Yo can close.
    Many thanks!

    BR,

    Antonio.

    #1395352

    Hi Antonio,

    Great! Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Remove alt image name’ is closed to new replies.