How to Highlight The Current Page Parent Menu in Atahualpa Theme of WordPress

If you are currently using Atahualpa theme, then this modification is for you! This following code will highlight your current page parent menu based on the selected child page menu that being selected. This is useful for those of you who have so many page menus which have the page child menu, and you want to know which page parent menu is currently having the selected page child menu. Of course, your website visitor also will feel so comfortable since they will be able to know that they have selected the certain menu based on that selected page parent menu.

Open your \wp-content\themes\atahualpa\css.php, and find this code:

2423
/* "current" page and hover, first part old version */

before that line, please insert this following code:

2422
2423
2424
2425
2426
2427
2428
2429
/* "current" page parent and hover, first part old version */
div#menu1 ul.rMenu li.current_page_parent > a:link, 
div#menu1 ul.rMenu li.current_page_parent > a:active, 
div#menu1 ul.rMenu li.current_page_parent > a:hover, 
div#menu1 ul.rMenu li.current_page_parent > a:visited {
	background-color: #<?php echo $bfa_ata['page_menu_bar_background_color_hover']; ?>;
	color: #<?php echo $bfa_ata['page_menu_bar_link_color_hover']; ?>;
	}

Now each time you select or click the certain child page menu, then its parent will be automatically highlighted.

Share

2,230 viewsPrint This Post Print This Post

Trackbacks

  1. [...] of WordPress in order to display the highlighted or selected page parent menu at this article: How to Highlight The Current Page Parent Menu in Atahualpa Theme of WordPress, then this following modification will also do the same thing, but for the category menu. As we [...]

Speak Your Mind

*


*