• Resolved mc16

    (@mc16)


    Hello,

    I’m having trouble finding where I can edit or remove the text that appears when you hover over a link.

    I’m using this theme: https://www.mono-lab.net/demo3/
    Whenever you hover your mouse over a tab at the top, the text that appears corresponds with the page name.

    How can I remove this, or at least edit it to say something else? Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • What I do is leave the titles (for search engines, screen readers etc) and hide them only to the end user, via Javascript. In order to do so I add to the header.php of my theme :
    <? if( !is_admin()){
    wp_deregister_script('jquery');
    wp_register_script('jquery', ("https://jqueryjs.googlecode.com/files/jquery-1.3.2.js"), false, '1.3.2');
    wp_enqueue_script('jquery');
    } ?>
    <?php wp_head(); ?>
    <script type="text/javascript">
    // WP jQuery compatibility
    var $j = jQuery.noConflict();
    $j(function(){
    jQuery('.menu li a').removeAttr("title");
    });
    </script>

    bigevilbrain

    (@bigevilbrain)

    Thanks Veganist, this help me also.

    Thread Starter mc16

    (@mc16)

    Many thanks veganist! This worked perfectly. Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove alt/title of links?’ is closed to new replies.