Menu – custom structure

Problem is fixed. Here is the solution: functions.php register_nav_menu( ‘primary’, __( ‘Primary Menu’) ); class Menu_With_Description extends Walker_Nav_Menu { function start_el(&$output, $item, $depth, $args) { global $wp_query; $indent = ( $depth ) ? str_repeat( “\t”, $depth ) : ”; $class_names = $value=””; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $class_names = join( … Read more

Display same menu for parent and all its children

Yes, create 3 custom menus and use a conditional. Example you have 3 custom menus named, Products, Services,Training. Open the section of the page you want to insert code in the header.php or where ever you need it. file and use: if (is_page( array( 42, ‘Products’ ) )) { wp_nav_menu(‘menu’ => ‘Products’); }elseif(is_page( array( 2, … Read more

menu items outside of blog

Maybe you are referring to something like this: <?php define( ‘WP_USE_THEMES’, false ); require_once( ‘/absolute/path/to/wp-blog-header.php’ ); wp_nav_menu( $args ); but the current menu item highlighting will not work as expected.

Can’t style custom menu

I think you are not targeting the element correctly. Try this: #mainmenu { display: block; } #mainmenu ul.nav-primary { list-style-type: none !important; background-color: rgba(0,0,0,0.25) !important; padding: 5px !important; border-radius: 8px !important; -moz-border-radius: 8px !important; -webkit-border-radius: 8px !important; } #mainmenu ul.nav-primary li { display: inline-block !important; background-color: rgba(0,0,0,0.25) !important; margin-right: 5px !important; height: 32px !important; padding-top: … Read more

How to make a drop down menu with categories

You have to modify only the first part as this: <ul id=”nav” class=”clearfloat”> <li class=”cat-item”><a href=”https://wordpress.stackexchange.com/questions/108006/<?php echo get_option(“home’); ?>/” class=”on”><?php echo get_option(‘blogname’); ?></a> <ul class=”children”> <?php wp_list_categories(‘orderby=name&title_li=’); $this_category = get_category($cat); if (get_category_children($this_category->cat_ID) != “”) { echo “<ul>”; wp_list_categories(‘orderby=id&show_count=0&title_li= &use_desc_for_title=1&child_of=”.$this_category->cat_ID); echo “</ul>”; } ?> </ul> </li> <?php wp_list_pages(“title_li=’); ?> </ul> Here the menu will show up … Read more

WP NAV MENU – Dropdown always showing

You have to modify style.css. What you should do is look at your source code and see the structure you generated for your menu, and then change your menu accordingly. There are lots of tutorials on the web, all you have to do is Google “css menu tutorial” or “css menu example” and you will … Read more

Problem with custom menus

You have created menu “placeholders” of sorts but you haven’t added any actual menus yet, thus you see a kind of default menu being displayed. Go to wp-admin -> Appearance -> Menus Create a menu Assign the menu to one of your menu locations Add something to the menu Save Now you should see the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)