• Resolved Dono12

    (@dono12)


    Hey, hope all is well with you guys:

    I’m using one of your themes for a project and I recently noticed, after adding eg: glyphicon-envelope to the title attribute of the Contact nav, when you hover over that link oppose to showing
    Just Contact for the page title/tool-tip it shows glyphicon-envelope . I’ve also checked the theme demoes on your main site and they all have the same strange behavior. How can this be remedied, I’m almost certain this was not happening in previous WordPress Version. Haven’t tried to verify though.

    Thanks a lot in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Dono12

    (@dono12)

    Figured a solution.
    edit navwalker.php located in wp-content->themes->your-theme-name->inc->navwalker.php

    edit this line of code removing the not statement (!) before strpos

    $atts['title'] = ( ! empty( $item->attr_title ) && !strpos($item->attr_title, '') ) ? $item->attr_title : $item->title;

    Your new code

    $atts['title'] = ( ! empty( $item->attr_title ) && strpos($item->attr_title, '') ) ? $item->attr_title : $item->title;

    This should remove fontawesome tags showing in Nav title when hovered.

    Showing only the Nav title of the page/category as the Developer Gods intended.

    Awesome great to see you got that figured out.

    Please advise if you have more questions.

    Have a fantastic day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Nav Hover Title Text Shows Font Awesome Text’ is closed to new replies.