WordPress.org

Ready to get started?Download WordPress

Forums

Openstrap
[resolved] title attribute in menu not working (3 posts)

  1. Katrienmoore
    Member
    Posted 4 months ago #

    HI,

    I am building a website for a local school using openstrap.
    It seems that the title attribute in the menu is not working correctly.
    On hovering over the menu the hover text displays the text I put into the navigation label and not the text I put into the title attribute.
    Can someone help me with this?

    Thanks

  2. mrtom414
    Member
    Posted 4 months ago #

    do you have a link showing what your talking about ?

  3. Katrienmoore
    Member
    Posted 4 months ago #

    Hi Guys,

    A lovely guy in the openstrap support gave me the solution to this problem.
    It works perfectly now.
    If you have the same problem try this:

    n functions.php, there is a class that is used to rendere nav menu. If you can check around line #689 (latest theme) you will see like

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

    you can go ahead and update it to

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

    Your menu title will be shown

Reply

You must log in to post.

About this Theme

About this Topic