How to get current page menu item name instead of full menu item list

I would like to build a menu structure where you can only see the menu item of the current page like on this web site http://www.bigspaceship.com/services/ I search around and I have the following function so far <?php $menu_items = wp_get_nav_menu_items( ‘main-menu’ ); foreach( $menu_items as $item ) { print_r( $item ) ; // see … Read more

Menu styling for last menu item

okay so I’m using the following code to get my links… <?php wp_nav_menu( array(‘theme_location’ => ‘primary’, ‘container’ => ”, ‘menu_class’ => ‘mainnav’) ); ?> This is my CSS for the nav… .mainnav a { font-family: gooddog_plainregular, Arial, sans-serif; font-size: 30px; color: #ffea00; text-decoration:none; } .mainnav li:after { content: url(‘images/nav-divider.png’); } .mainnav li.last:after { content: none; … Read more

Where is definied the theme location for the main menu in a WordPress template?

I am pretty new in WordPress (I came from Joomla) and I have the following doubt related the Theme Location of the main menu. For example, using the preinstalled Twenty Twelve theme, if in the backend I go into: Appearance —> Menus —> Manage Location I can assign my main-menu only to a specific theme … Read more