[Resolved] Targeting just Menu Link Title and not Description

Home Forums Support [Resolved] Targeting just Menu Link Title and not Description

Home Forums Support Targeting just Menu Link Title and not Description

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1991071
    antware

    Hi there guys. Just need to know before I go ahead and tackle this (by manually adding the span and class around each menu item under Appearances -> Menu – please refer to screengrab for reference) if there is a way or a filter in GP that would allow me to add a span with a class around the Menu Item Text (Title). My client’s latest design is calling for the Menu Item to have text-decoration: underline on the Menu Text on :hover, but unfortunately since the Description is also encased in the <a> tag, that is also displaying underline on :hover. So I need to be able to target just the text with an encasing <span> tag. Thanks.

    Span Menu Link

    #1991160
    David
    Staff
    Customer Support

    Hi there,

    may be this stack overflow method will work for you:

    https://wordpress.stackexchange.com/a/114977

    #1991191
    antware

    Perfect David, that worked a treat. Thanks for your time.

    #1991379
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.