How to highlight parent menu item when child pages are active?

This code snippet will highlight parent menu item whenever the child pages are being shown.

.current_page_parent {
    color: #ffffff;
    background-color: #660000;
}
.current_page_parent > a {
    color: #fff !important;
}

Leave a Reply

Your email address will not be published. Required fields are marked *