Submenu items not showing anymore on the navigation

Without knowing what happened before you lost your subnav, I’ll walk you through troubleshooting. First, look at your code. I viewed your code with Developer Tools (in most browesers press F12) and found your submenu is there. Which means it is likely a missing javascript file or CSS issue. Retrace your steps. Is there a … Read more

How to change the location of the menu

I had a look at the GeneratePress theme for you; adding this custom CSS should do it: .nav-float-right .inside-header .main-navigation { float: none !important; } EDIT: Or, as Madalin showed, a non-!important version: html .nav-float-right .inside-header .main-navigation { float: none; }

WP Enqueue style on all plug-in pages

If you want enqueue style on all admin pages You can use the following code function load_custom_wp_admin_style() { wp_enqueue_style( ‘custom_wp_admin_css’, plugins_url(‘css/style.css’, __FILE__) ); } add_action( ‘admin_enqueue_scripts’, ‘load_custom_wp_admin_style’ ); Or if you want enqueue style on specific pages, You can use the following code function load_custom_wp_admin_style($hook) { if($hook != ‘toplevel_page_myplugin’ || $hook != ‘widgets.php’ || $hook … Read more

Show About and Contact Us page when they’re clicked in the top menu.

You need to include a loop to retrieve the page content. Something like: <div id=”primary” class=”site-content”> <div id=”content” role=”main”> //BELOW HERE <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( ‘content’, ‘page’ ); ?> <?php comments_template( ”, true ); ?> <?php endwhile; // end of the loop. ?> //ABOVE HERE </div><!– #content –> </div><!– … Read more

How to create a menu with pages and post categories?

Use a Navigation Menu. In your child theme or custom theme’s functions.php file, create the menu like so: add_action(‘after_setup_theme’, ‘wpse_add_theme_support’); function wpse_add_theme_support() { add_theme_support(‘menus’); } add_action(‘init’, ‘wpse_nav_menus’); function wpse_nav_menus() { register_nav_menu( ‘primary-menu’, __( ‘Primary Menu’, ‘theme-slug’ ) ); } Then presumably in header.php, or wherever you’re adding the menu: wp_nav_menu(array(‘theme_location’ => ‘primary-menu’); There are various … Read more

display menu as table layout

Editing my answer. See the screenshot, if it’s close enough to what you’re looking for, try adding the following to your stylesheet. .header_menu_res ul li { margin: 0 0 20px; width: 25%; } .menu-item i._mi, .menu-item img._mi { display: block; float: left; } .menu-item span { margin-top: 8px; display: block; margin-left: 60px; }