WordPress.org

Ready to get started?Download WordPress

Forums

JQuery Vertical Mega Menu Widget
Change color of selected page (2 posts)

  1. irenefarrimond
    Member
    Posted 1 year ago #

    Hi there,

    I'm styling a custom menu. Quick question, I'm sure it's obvious, but I can't figure out how to make the page that the user is currently on a different background color from the rest. Please help!

    Thanks!

    http://wordpress.org/extend/plugins/jquery-vertical-mega-menu/

  2. superpotion
    Member
    Posted 1 year ago #

    Irene, I think that what you're asking is how to change the background color of the menu item for the current page?

    WordPress applies the class .current-menu-item to the menu link so, for example, in your style.css (or whatever) simply add something similar to:

    #dc_jqverticalmegamenu_widget-2-item ul li.current-menu-item > a {
    	background: white!important;
    	color: black!important;
    }

    Denis

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.