This topic has 5 replies, 4 voices, and was last updated 9 years by giorgos.

  • Author
  • #32022
     bigrats
    Participant

    hi,

    i want to know how to add highlight “new” to the menu item ,just like your demo site.

    thanks

    #32026
     sharmstr
    Moderator

    Add this to the title

    COPY CODE
    
    <em>New</em>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32646
     giorgos
    Participant

    I also use this on the menu but the problem is its description while on mouse over. It is not stripping out the em tags. Doesn’t look good.

    How can we fix this?
    Thanks

    #32659
     sharmstr
    Moderator

    Hmmm. You’re right. Let me see if I can find that.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #32727
     Catalin
    Moderator

    Try replacing line 231 in functions.php with

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

    That should strip tags from the title. Also another solution would be to put a value in the Title Attribute for that item

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #32759
     giorgos
    Participant

    Yes. That did the trick. Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Menu highlight NEW label’ is closed to new replies.

Log in with your credentials

Forgot your details?