• ndwno

    (@ndwno)


    Hi,

    I want to add html to my navigation label.
    If I write f.eks < span style=”font-weight:bold;” >about< /span > US it’s shown like that in frontend.

    Why can’t I use html/span in navigation label?

    I’m also looking for a way to display the description before the title and not after.

    The code is:
    if ( $args->description )
    $output .= sprintf(‘ <span class=”nav_desc” style=”color:#fff;”>%s</span>’, esc_html($item->description));
    }

The topic ‘Can't use span/html in navigation label’ is closed to new replies.