Using _s theme, menu changes do not affect header menu
You should be calling the menus by name, not description: <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?> <?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’ ) ); ?>
You should be calling the menus by name, not description: <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?> <?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’ ) ); ?>
No, it doesn’t appear to be possible. At least not directly. You can replace functions in parent themes if they are wrapped in: if ( ! function_exists( ‘get_nav_markup’ ) ) { } Because child themes are loaded before the parent this gives you an opportunity to define get_nav_markup() before the parent theme is loaded. That … Read more
Hi @matt: To achieve what you are asking you need to add some code to queue up a Javascript file and then the Javascript file itself. You can put the code that follows in your theme’s functions.php file. You’ll note it uses is_admin() to avoid loading the Javascript code in your /wp-admin/ console; you should … Read more
I’m not entirely clear on what you are trying to do exactly because “I had to manually build another menu. I just created a list and inserted links to the pages I needed, without using any WordPress function.” didn’t make a whole lot of sense. You need to exclude pages by including the exclude parameter … Read more
To check for a specific parent ID use $post->post_parent==”123″ and replace “123” with the parent ID of your choice. I learned how to do this by using the Widget Logic plugin. From the Widget Logic notes: global $post; return (is_page(‘pagename’) || ($post->post_parent==”13″)); — home page OR the page that’s a child of page 13 Edit: … Read more
I took a look at Justin’s ‘writings’ menu. I don’t believe he’s using custom post types for this — I think they’re just regular posts and drop down menu is displaying category archives. Here’s how you can replicate the same setup for custom post types. Make sure your custom post types support a taxonomy, such … Read more
I’m not entirely sure, but it seems like you want to store the last visited page for future use (a go back button?). I see two ways to do this: Keep it in the URL as a get argument the same way you save the search queries. This leads to a long url, though Save … Read more
First: Use, for options(), the Settings API (tutorial). Second: Take a look at the core function and the available filters. Then take a look at the available filters: $sorted_menu_items = apply_filters( ‘wp_nav_menu_objects’, $sorted_menu_items, $args ); $items = apply_filters( ‘wp_nav_menu_items’, $items, $args ); $items = apply_filters( “wp_nav_menu_{$menu->slug}_items”, $items, $args );
The hover is part of the theme you are using. You need to find whats causing the dropdown on hover and remove it. It’ll either be javascript controlled or css. You can test if its javascript by disabling javascript, although is may have a css fallback. If its CSS use firebug to find the selectors … Read more
You can simply put The code in the php file in your theme.If you use twentyeleven theme open content-single.php, find the line <h1 class=”entry-title”><?php the_title(); ?></h1> And after it put your divs and top menu. Another option is to create a widget where you could easily update the html code. Instead your divs, below this … Read more