Continue reading Hopeareunus updated to version

Hopeareunus updated to version

There is a small update on Hopeareunus Theme. Add hopeareunus_singular_loop_nav filter to loop-nav.php. Add menu parent class using filter wp_nav_menu_objects and remove it from js. Removed .sub-indicator and added #menu-primary .menu-item-parent > a to styles. The main thing I wanted to do this update is because Chip Bennett told pure CSS way of adding sub…

Read more Hopeareunus updated to version
Continue reading Add parent menu class

Add parent menu class

Chip Bennett gave an excellent code snippet in theme reviewers email list. It adds menu-item-parent class to every parent menu item. function my_add_menu_parent_class( $items ) { $parents = array(); foreach ( $items as $item ) { if ( $item->menu_item_parent && $item->menu_item_parent > 0 ) { $parents[] = $item->menu_item_parent; } } foreach ( $items as $item…

Read more Add parent menu class