Make menu items open in new tab/page
Go to Appearance > Menu click screen options (near top of page) tick “Link target” Now, when you click a menu item drop down, you can choose what the link target is (you want to choose New window or tab)
Go to Appearance > Menu click screen options (near top of page) tick “Link target” Now, when you click a menu item drop down, you can choose what the link target is (you want to choose New window or tab)
jQuery Solution if you’re using jQuery you can use: var $li = jQuery(‘ul > li:last-child’,’#nav1′); to select your last menu child. Then after you select it you can chain it with another function: $li.wrapInner(‘<input type=”button” value=”My Button!”>’); Then all together: jQuery(document).ready(function() { // Cache your selection var $li = jQuery(‘ul > li:last-child’,’#nav1′); // Replace it … Read more
The default fallback menu is created with wp_page_menu() function and if you want to customize it the you need to create your own fallback function : function my_fallback_menu(){ $args =array(‘whatever’); wp_page_menu($args); } and then call that function in your wp_nav_menu call as the fallback: wp_nav_menu(array( ‘theme_location’ => ‘mainnav’, ‘container’ => ‘nav’, ‘container_id’ => ‘mainnav’, ‘container_class’ … Read more
You can use the CSS class for the menu. Under “Screen Options”, flag “CSS Classes“, under “Show Advanced Properties”. Then, for every menu item, you have an additional input that is named “CSS Classes”
To use a static Front Page, you need to do the following: Create two static Pages, one for your front page content, and one for your blog posts index; their names are entirely arbitrary, but for our purposes, let’s call them “Front Page” and “Blog” Go to Dashboard -> Settings -> Reading Set “Front Page … Read more
Why not use a purely CSS-based solution, using the :after pseudo-element? e.g. #nav li li a:after { content: ‘|’; }
WordPress already applies the CSS class current-page-ancestor to the <li> if it is a link to a Page that is a parent (or higher) of the current Page. This follows the Page structure, not the menu structure. If this is not fit for your situation, could you edit your question to make it more clear … Read more
Try “depth”=>1. 0 means “unlimited”.
I’m just shooting in the dark here, but what i think is going on is your menu “thinks” its on the blog page when its really on the “CPT” page? is that about right? if so then you need to select a blog page in the admin section. Under the Settings menu click on the … Read more
Maybe for the next time, create a question for each topic 😉 1) Menu Item for Custom Post Type archive I don’t have an automated solution here. But in my opionion it should be possible to create a similar widget inside the Menu Admin Page to display all Posttypes with an archive and generate a … Read more