WordPress.org

Ready to get started?Download WordPress

Forums

best way to change color of menu item (5 posts)

  1. storyline_admin
    Member
    Posted 1 year ago #

    Hi guys,

    What would be the best way to change the color of the menu item "Kalender" of the parent menu item "Ploegen" on my site? I was thinking of adding a class to the wp-includes/nav-menu.php or nav-menu-template.php file if the menu-item == "Kalender", but I have no idea how or where to add this.

    Hope you guys can help!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    No! Never, ever, edit WordPress core scripts. And do not encourage others to do so. Editing core scripts can bring down your entire site and/or open security holes for hackers to use.

    You need to start editing your theme's CSS. FTP into your site (or use whatever file management application your host provides) & delete the

  3. storyline_admin
    Member
    Posted 1 year ago #

    Okay I see. I would very much like to edit the css files, but the class and id's are the same for each menu item, so how can I change the color of only one menu item only in css?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    That menu item has more than 1 unique id.

  5. storyline_admin
    Member
    Posted 1 year ago #

    thanks!!!

Topic Closed

This topic has been closed to new replies.

About this Topic