Jump to content
Sign in to follow this  
mobbbx

Global Nav Pro 1.3.1 CSS issues

Recommended Posts

mobbbx

I'm trying to add a global nav to my site. I followed the example shown under the child sections and template. But the globalnav created looked entirely different. globalnav_error.PNGLink User: iu_user Password: iu_user I was hoping to get the similar navigation effects as the primary navigation. Maybe change colors or font size for the global navigations. Thanks!

Share this post


Link to post
Share on other sites
Kate

Hi Rudy - So you created that under "Appearance->Menus"? Did you add any custom CSS? Also, you may want to try disabling any plugins you have installed, in case there's a CSS conflict there.

Share this post


Link to post
Share on other sites
mobbbx

Hi, thanks for your suggestions. I've tried removing all the custom CSS, but still the same. Disabled ALL plugins, still the same. Help anyone? thanks!

Share this post


Link to post
Share on other sites
cmunns

It's the opposite. The global nav likely in your case has a different id or class being used when you call the wp_nav_menu and thus it is completely unstyled. what do you have for wp_nav_menu(){......}?

Share this post


Link to post
Share on other sites
mobbbx

this is what i did for the section.globalnav:

class BaseGlobalNav extends PageLinesSection {
	   function __construct( $registered_settings = array() ) {
	
			/* The name and ID of the section */
			$name = __('GlobalNav Section', 'pagelines');
			$id = 'globalnav';
	
			/* Setup description, areas it works with, icon, etc...*/
			$settings = array(
				'description' 	=> 'Creates a Global nav section in Base',
				'workswith' 	=> array('header'),
				'icon'			=> CHILD_IMAGES . '/icon-pullquote.png'
			);
	
			/* Draw section using the section API */
		   	parent:GDN__construct($name, $id, $settings);
	   }
	
		/* Use this function to create the template for the section */
	 	function section_template() {
	
		?><div id="primary-nav" class="global"><?php
				if(function_exists('wp_nav_menu')){
				wp_nav_menu( array('menu_class' => 'main-nav', 'container' => null, 'container_class' => '', 'depth' => 3, 'theme_location' =>'globalnav', 'fallback_cb'=>'nav_fallback') );
	
				}
	
		?></div><?php
			}
	
		function section_persistent(){
	
				register_nav_menus( array('globalnav' => __( 'Global Navigation', 'pagelines' ) ) );
	
		}
	
	}
Then on the functions.php i added
pagelines_register_section('BaseGlobalNav','globalnav', null, array('child' => true) );

thanks!

Share this post


Link to post
Share on other sites
bryan-hadaway

Let's get you some further developer assistance. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

Right...okay so if you take a look at a lot of the main navigation css, it has `#primary-nav` as the parent selector. You need to duplicated all those rules and for each duplicate replace #primary-nav with #globalnav does that make sense? If you inspect the page you'll see what I'm talking about.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×