Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1398063

    Hello,
    I would like to ask how it is possible to remove the name of the image in the gallery. Thank you

    name of image

    #1398118

    Hey martinmoravek1,

    Thanks for the screenshot. Could you post a link to where we can see the actual element as well please?

    Best regards,
    Rikard

    #1398127
    #1398157

    Hi martinmoravek1,

    Please try to add this in your child themes functions.php file:

    function temporary_removal_title_tags(){
    ?>
    <script>
      window.onload = function() {
          var links = document.querySelectorAll('a, img, *[title]');
          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');

    If you don’t have a child theme yet, then go to https://kriesi.at/documentation/enfold/child-theme/ and download the child theme there (instructions on how to use it is also there)
    Hope it helps.

    Best regards,
    Nikko

    #1398194

    Thanks for your answer.

    I downloaded the child theme, set it up according to the instructions, inserted it into functions.php, deleted the cache, but no change. I tried to enter it in functions.php in the main theme, but also with no result.

    #1398456

    Hi,
    Thank you for your patience, Please try this code in the General Styling ▸ Quick CSS field:

    .mfp-content .mfp-title {
    	display: none;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1398463

    thank you very much, now it´s ok :-)

    #1398465

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘name of image in gallery’ is closed to new replies.