dropdown menu, with walker

You have to tell the browser to change the address in some way. A simple javascript solution is to put the item URL into the value attribute, and trigger the address change when the option is selected. Replace: $output = str_replace(‘<li’, ‘<option’, $output); With: $output = str_replace( ‘<li’, ‘<option value=”‘.$item->url.'” onchange=”window.location.href=this.value”‘, $output);

Custom Menu in Themes not working even in Twenty Eleven theme

I suspect that the problem here is that, on your remote test site, you haven’t created any custom menus. Try creating one or more custom menus, and then the “Theme Locations” meta box should appear, enabling you to assign your defined custom menus to defined Theme locations. As is shown in the Codex entry for … Read more

wp_nav_menu li item empty

Take a look at the Codex documentation. The items_wrap attribute is for wrapping the list elements as a whole – not each individual menu item: Whatever to wrap the items with an ul, and how to wrap them with If you look at this line you’ll see that it is using sprintf to replace three … Read more

How do i specify a url to which to redirect the user after he logs out from facebook?

A Web site that I recently worked on for a client involved tying WordPress together with another CMS including tight login integration. Because of clashes with internal functions, I could not call the WordPress logout function directly from the CMS. Intead, I created a special logout page in the WordPress root which I redirected to … Read more

custom menu widget where menu title is a link

You can filter the title of most widgets and change the markup. The name of the filter is ‘widget_title’ and the third parameter tells you the type of the filtered widget. Sample code, not tested: add_filter( ‘widget_title’, ‘wpse_52108_nav_widget_title_link’, 30, 3 ); /** * Changes the title for the nav menu widget. * * @param string … Read more