Second tier sidebar navigation

For now I have decided to use a CSS solution. I realized with the code above I do actually have classes I can work with. For example if you had this navigation in a you could use something like this. nav.sidebar li li li { display: none; } nav.sidebar li li.current_page_item > ul > li, … Read more

Show posts of parent in edit.php

If you are using just using 4 posts, I think that schools would better be suited as taxonomy terms rather than a post type. Associate your Posts with the school tax term. I would then create custom templates for each of those terms. taxonomy-schools-cambridge.php taxonomy-schools-teeside.php taxonomy-schools-newcastle.php taxonomy-schools-sunderland.php Within those templates, use a WP_Query object to … Read more

How to insert date in topNav

wp_nav_menu has a $container parameter that can be used to set the type of container (div or nav) or to disable it. You could set the parameter to false and hardcode the wrapper div whilst including a date inside of it: <!– BEGIN HEADER-TOP –> <div class=”navigation-wrap”> <?php wp_nav_menu( array( ‘theme_location’ => ‘topNav’, ‘depth’ => … Read more

Submenu opened problem

Within a WordPress framework, you can do this with a combination of body_class and CSS. body_class will echo classes into the <body> tag, including a page-parent class, which you can then use to control your elements. Without seeing your actual WordPress page, I can’t give you the necessary CSS.

Create and style menu

In your theme’s functions.php, write the following code: <?php /* ENABLING CUSTOM MENUS ————————————————– */ //add_theme_support( ‘menus’ ); register_nav_menus( array( ‘primary’=>__(‘Primary Menu’), ‘secondary’=>__(‘Secondary Menu’), ) ); ?> It’ll register two custom menu area for your theme. Then you need to achieve it with in header.php: <?php wp_nav_menu ( array ( ‘theme_location’=>’primary’, ‘fallback_cb’=>”) ); ?> This … Read more

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