mobbbx 1 Report post Posted March 7, 2011 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. Link 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 3 Report post Posted March 7, 2011 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 1 Report post Posted March 7, 2011 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 16 Report post Posted March 7, 2011 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 1 Report post Posted March 8, 2011 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 3 Report post Posted March 8, 2011 Let's get you some further developer assistance. Thanks, Bryan Share this post Link to post Share on other sites
mobbbx 1 Report post Posted March 8, 2011 Help anyone? Share this post Link to post Share on other sites
cmunns 16 Report post Posted March 8, 2011 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