Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #985203

    Hello guys,

    I am trying do none-display or remove the title in the box, which is showing, when i hover an image in my gallery :/
    Only fount some tips using the functions.php (i dont use a child theme yet…and even dont know where i find the “right” functions.php)
    Can you please help me out? Example in private content.

    Thank you and have great weekend!
    Vincent

    #985728

    Hey intimadecom,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
      jQuery(window).load(function(){
      jQuery('a').removeAttr('title');
      jQuery('img').removeAttr('title');
      });
      </script>
      <?php
      }
      add_action('wp_footer', 'custom_script');

    or if this is for just one page, or two, you can add this code to a “code block” element at the top of your page:

    <script>
      jQuery(window).load(function(){
      jQuery('a').removeAttr('title');
      jQuery('img').removeAttr('title');
      });
      </script>

    Best regards,
    Mike

    #986390

    It does not work. I’ve added both of your codes, together and seperated at the end of the functions.php.
    Any other ideas? Please!

    #986395

    It removes the title in the lightbox. but i want to remove it just for the gallery hover effect as you can see it in the private link…

    #986703

    Hi,
    Can you please include a admin login in the private content area so we can take a closer look.

    Best regards,
    Mike

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.