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

    when you hover the mouse over the top logo on the private link, it display the filename, i turned off caption and link, how do i avoid that?

    #646658

    Hey kilimats,

    Try adding this script to functions.php:

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

    This should remove the title attribute from the image.

    Best regards,
    Jordan

    • This reply was modified 8 years, 5 months ago by Jordan.
    #646811

    Is it possible to add this bugfix to the next version of enfold?

    #646828

    Hi!

    That is not a bug, as it is not such an issue, but will report to kriesi and if he things it is something that can be fixed, will make sure to be done.

    Thanks a lot for your understanding and for using enfold.

    Regards,
    Basilis

    #998760

    A quick question – I put this code into a new functions.php file and my site went blank – I think it’s missing some code when it’s alone in a single functions.php file connected to a child theme? Please advise :)

    #998817

    Hi,
    I have tested this code in my functions.php, and it worked correctly:

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

    If you are using a child theme functions.php, then please ensure that this bit of code is at the very top of the file:

    <?php
    

    Best regards,
    Mike

    #998820

    That fixed it! Thank you so much – I’m not a programmer :)

    #998822

    Hi,
    That is great news, unless there is anything else we can assist with, shall we close this then?

    Best regards,
    Mike

    #998823

    Yes, please. I hope that this helps someones else, too! :) Thanks, again!

    #998831

    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 under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Image mouse hover shows filename’ is closed to new replies.