Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #800471

    Hi,

    I need to remove the title showing when the mouse hovers over any images. I tried several CSS found in previous tickets and also the following PHP code (cleaning the cache etc) but nothing seems to work.

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘img’).removeAttr(‘title’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_script’);

    Could you please help me with this?

    Many thanks

    #800592

    Hey Lura1988,

    You can remove title and description of images in the media library.
    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look.

    Best regards,
    Victoria

    #800616

    Hi Victoria,

    thanks for your answer.
    I need the title in the media library cause sometimes I have two different sizes of the logo etc.

    Thanks for you help

    #800629

    Hi Lura1988,

    You should really have a child theme and do modifications there.
    Try the code below, I changed the single quotes, the ones above are not recognized as code.

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

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #800647

    Hi Victoria,

    It worked!!

    Many thanks :)

    #800737

    Hi,

    We’re glad that Victoria was able to help! If you have any other questions or issues, feel free to post them here on the forum and we will gladly try to help you.

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/

    We’d also appreciate it  if you can take a moment to review our theme if you haven’t already. https://themeforest.net/downloads&nbsp;

    Thank you for using Enfold!

    Sarah

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘I don't want the image name to appear when the cursor hovers over it’ is closed to new replies.