Articles of menus

How to add content to the menu

I made my menu bar and made 2 blog posts, but when I click on a menu section (ex; makeup reviews) my post dose not show up but shows up on my homepage. How do I add a post to that menu category so that page so that post shows up in the place I […]

How to add user created menu item in header or footer menu?

I am new to wordpress,i want to set function like as whenever user create new menu item,then the menu item should be added in header or footer menu depends on users wish.anyone give the function to create it

How can I save what “PrimaryMenu” is selected?

I can change selected PrimaryMenu for each request with wp_nav_menu_args hook. But I can’t save what PrimaryMenu is selected like I do it from admin site GUI. I found that this value has been stored in table wp_options in theme_mods_[%active_theme%] but this value is serialized in very strange format and I just afraid to change […]

Responsive Dropdown Menu

I’m always looking for different menu styles for websites and ran across this really simple menu here: What I like about the menu is that it is responsive and works out of the box with my menu (for the most part). The only problem I ran into is the submenus. This menu doesn’t seem […]

menu mobile show up even i in desktop mode in Newspaper Theme

I have WordPress website with Newspaper Theme and I have a problem with the Menu. Link: I have 2 problems: The menu mobile show up in left side even i in desktop mode, this not should be displayed,just if i in mobile mode… From my mobile the menu also open autumaticlly and this not […]

Change active menu on scroll

I have a menu with some pages and a custom link pointing to last block of homepage (contacts). But i have some issues with “active” class. When i write the complete url in the url field (to have possibility to access from other pages) it’s allways stays “active” and change color of item. And i […]

wp_nav_menu active styles for parent, when current page is on 2 menu parents

I have a little problem and not found a solution on the web. Here is an example of my structure: Page Structure: Page 1 Page 2 Page 3 Page 3.1 Page 3.2 Page 4 Page 4.1 My Menu Structure: Page 1 Page 3 Page 3.1 Page 3.2 Page 2 Page 4 Page 4.1 Page 2 […]

Menus not visible in Appearance after being registered

The menus have been registered in functions.php, but they don’t appear within the Appearance > Menus section in Admin and the pages, posts etc options are greyed out. The menus are saved, as you can not create the menu with the same name again. Within functions.php: function theme_setup() { add_theme_support( ‘automatic-feed-links’ ); add_theme_support( ‘post-thumbnails’ ); […]

container_class doesn't seem to be working

I’m new to WordPress and I’m not able to spot the error in my array passed as argument to wp_nav_menu. Here is how I declare it <?php wp_nav_menu( array( ‘container’ => ‘ul’, ‘container_class’ => ‘nav navbar-nav’, ‘container_id’ => ”, ‘theme_location’ => ‘header-menu’, ) ); ?> But that’s how my HTML is rendered: <ul class=”menu”> <li […]

Pulling a variable into the wp_nav_menu function

I looked around and couldn’t get any answer that helped me. I have an include that I am calling in multiple headers (I have different headers for different sections of a membership site that need different menus and resources.) template-main-nav.php: <div id=”nav”> <div class=”close-menu”></div> <?php wp_nav_menu( array( ‘menu’ => $menu_name, ‘theme_location’ => ‘primary’, ‘depth’ => […]