WordPress.org

Ready to get started?Download WordPress

Forums

CSS in Custom Menu (5 posts)

  1. allentan
    Member
    Posted 1 year ago #

    I have a Custom menu created with a mix of Pages and Custom Link, but most Custom links are with no URL so its Unclickable. I wanted to make those Unclickable items with No Underline, and those with Links on Pages to be UNDERLINE and clickable. How should i do it ?

    Regards
    Allen

  2. zex2911
    Member
    Posted 1 year ago #

    When you go to dashboard/appearance/menus, in the top right corner you have screen options tab. Click on it, and thick CSS Classes checkbox. Now when you click on a small triangle next to menu item (example:home on the right has custom/page/link text and small triangle next to it) you will have option to add class to that menu item. Just add any and style it the way you want.

  3. allentan
    Member
    Posted 1 year ago #

    Do you have any sample of a class type and where do I add this Class into? style.css?

  4. zex2911
    Member
    Posted 1 year ago #

    just add any class you want (no-underline, unclick-link, alcohol-free...) and than in your style.css, where you think it will make sense to you, add that class. For example:
    .exit-festival{text-decoration:none}

  5. allentan
    Member
    Posted 1 year ago #

    Ok. I got it.

    Thanks..

Topic Closed

This topic has been closed to new replies.

About this Topic