Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1208843

    Hello,

    I use post slider on my homepage. When the mouse is hovered on the images or the title, the title appears once again next to the cursor as a “tooltip”. I would like to hide this text. Can you give me a code and a short guidance, please?

    Thank you in advance!

    #1208929

    Hey Robert,

    This is possible via JS/CSS can you provide a link to the site/page in question so we can look into this issue further?

    Best regards,
    Jordan Shannon

    #1209043

    Dear Jordan!
    The link is: https://magyarnyelvsuli.com
    The post slider is at the bottom of the homepage.
    Thank you.
    Robert

    #1209200

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

    function custom_script(){
      ?>
      <script>
    (function($){
      $("*").hover(function(){
        $(this).removeAttr("title");
      });  
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Then clear your browser cache and check.

    Best regards,
    Mike

    #1209233

    Hello,

    When I add the code to the functions.php the following message comes up:

    Your PHP code changes were rolled back due to an error on line 790 of file wp-content/themes/enfold/functions.php. Please fix and try saving again.
    syntax error, unexpected ‘?’

    I can give you further access if needed.

    Robert

    #1209266

    Hi,
    Please include an admin login in the Private Content area so we can take a look.

    Best regards,
    Mike

    #1209278

    Dear Mike,

    I’m sending the login details
    Thank you for your help!

    Robert

    #1209293

    Hi,
    Thanks for the login, I added the code above to the end of your functions.php without error, please clear your browser cache and check.
    2020-05-03_092627.png

    Best regards,
    Mike

    #1209297

    Yes, now it’s perfect.
    Thanks Mike, :)
    Regards
    Robert

    #1209300

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Hiding title on mouse hover in Post Slider’ is closed to new replies.