Theme Location empty

“The current theme does not natively support menus This is your problem. Your Theme does not implement the core WordPress custom navigation menus feature. The primary menu shows all the pages… I assume that it is doing so via a call to wp_list_pages() …and the secondary menu displays the categories by default. I assume that … Read more

Custom menu with different behavior for every item

It is possible to do this using the backend nav menu support, using classes as markers that are then picked via the walker_nav_menu_start_el filter ( which then do queries to grab posts and insert their markup ) e.g. add_filter( ‘walker_nav_menu_start_el’, ‘menu_show_media_post’, 10, 4 ); function menu_show_media_post( $item_output=””, $item = ”, $depth=””, $args=”” ) { global … Read more

Adding numbers inside a span tag in nav menu [closed]

$(“#top .menu ul li”).each(function(i, el) { $(this).children(‘a’).prepend(“<span>” + (i+1) + “</span>”); }); or much better $(“#top2 .menu ul li”).each(function() { var $this = $(this); $this.children(‘a’).prepend(“<span>” + ($this.index()+1) + “</span>”); }); check this out for the difference… http://jsfiddle.net/reigel/aAYCt/

changing host.. data loss

When you migrated the site, you probably failed to sufficiently change the paths in the wp-options table. Dreamhost paths are /home/yourusername/yourdomain.com/ and I would assume GoDaddy paths are something different. When migrating a WordPress site from one host to another, a search and replace in the database is still needed even if the domain name … Read more

Menu Arrow for Child Element

To add arrow for parent elements: jQuery + CSS Solution: JQUERY: jQuery(function($){ $(document).ready(function(){ $(‘ul.sub-menu’).parent().addClass(‘drop-down’); // Add Sub-Menu Class to insert personalized style $(‘li.drop-down > a:first-child’).wrapInner(‘<span class=”menu-bullet” />’); // Add .menu-bullet in span to insert your arrow image background }); }); CSS: div#nav ul li.drop-down a .menu-bullet {display:block; background:url(your_image_path.jpg) no-repeat; padding-left:15px; /* padding left value is … Read more

How can I add a delay to the collapsible menu in Twenty Eleven?

Superfish is a script that will add a delay to the hover action. It is used in a lot of themes, for instance I know it is used in the Thematic Theme. Untested, but I think this is how you’d apply it (based on the docs). function wp88740_enqueue(){ wp_enqueue_script(‘jquery’); wp_enqueue_script(‘hoverintent’, get_stylesheet_directory() . ‘/scripts/hoverIntent.js’ ); wp_enqueue_script(‘superfish’, … Read more

Remove first separator in wp_nav_menu

If all you’re attempting to do is add a separator between links you’d be better off just scrapping what you have and do this: Create a new menu in the WP backend. Add your pages/links and save the menu. Then just use <?php wp_nav_menu( array(‘menu’ => ‘Name of Menu Here’ )); ?> to display your … Read more

Get current menu item label for specific parent menu [closed]

Add the following empty div where you want to display current menu label <div class=”menu-label-container”></div> and add the following script in footer of the page. jQuery(document).ready(function(){ if(jQuery(‘#nav li.current-menu-item a’).html()) jQuery(‘.menu-label-container’).html(jQuery(‘#nav li.current-menu-item a’).html()); }); Tell me whether this solution is working for you or i will find another solution.

How to add a page to header that is outside of WordPress?

The code you want is: <?php include ‘yourfile.php’ ?> Place the file in the same directory as header.php. EDIT: depending on the nature of the content, and how often you will reuse, you may also choose to use this: http://codex.wordpress.org/Function_Reference/get_template_part