Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eu blandit nisl. Suspendisse potenti. Pellentesque varius sagittis nibh, quis vulputate sapien molestie eget. Nulla suscipit lobortis placerat. Duis ultricies faucibus metus pellentesque vestibulum. Sed lobortis, lorem vitae tempus vestibulum, massa augue tempus quam, eu convallis orci nisl nec elit. Donec rutrum viverra magna id ornare. Sed sed leo elementum, malesuada nulla quis, pretium libero.
Using this code in phplugins:
// Add class "current_page_item" to menu item for the current page;
// You can style this as you like, for example, to highlight the current page menu item.
function scripts() {
echo <<<SCRIPT
<script>
$("ul.menu a[href='" + window.location.pathname + "']")
.parentsUntil('.menu', 'li')
.addClass("current_page_item")
;
</script>
SCRIPT;
return false;
} // END
And use this in your custom css file. Set colors to your preference:
/*current page menu highlighting */
.current_page_item {
background-color: red !important;
}
.current_page_item a {
color: yellow !important;
}