• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Question about styling custom nav menus?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Question about styling custom nav menus?

This topic is: resolved

Tagged: custom nav menus

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 8 months ago by Christoph.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 10, 2015 at 5:20 pm #147414
    sethbahookey
    Member

    Hello! I'm trying to mimic the Modern Studio Pro site (at least just the header) and I'm having some difficulties with the styling. Basically I have created two widget areas that I will post below...

    
    //* Register a widget area to the left of Site Title
    genesis_register_sidebar( array(
    	'id'            => 'custom-menu-left',
    	'name'          => __( 'Left Menu', 'EB' ),
    	'description'   => __( 'This is a widget area that can be placed after the post', 'EB' ),
    ) );
    
    //* Hook in the Menu Left Side
    add_action( 'genesis_header', 'main_left_menu', 8 );
    	function main_left_menu() {
    		genesis_widget_area( 'custom-menu-left', array(
    			'before' => '<div class="custom-left-menu">',
    			'after' => '</div>',
    	) );
    }
    
    //* Register a widget area to the right of Site Title
    genesis_register_sidebar( array(
    	'id'            => 'custom-menu-right',
    	'name'          => __( 'Right Menu', 'EB' ),
    	'description'   => __( 'This is a widget area that can be placed after the post', 'EB' ),
    ) );
    
    //* Hook in the Menu Right Side
    add_action( 'genesis_header', 'main_right_menu', 8 );
    	function main_right_menu() {
    		genesis_widget_area( 'custom-menu-right', array(
    			'before' => '<div class="custom-right-menu">',
    			'after' => '</div>',
    	) );
    }
    

    Now the menus are showing, but just not in the right place ๐Ÿ™ I've added a bit of styling to each menu too so they are fleshed out a little more...

    
    .custom-left-menu li {
    	float: left;
    	padding: 10px;
    	border-top: 1px solid black;
    	border-bottom: 1px solid black;
    }
    
    .custom-right-menu li {
    	float: right;
    	padding: 10px;
    	border-top: 1px solid black;
    	border-bottom: 1px solid black;
    }
    

    I took a screen shot so you can see what is going on here with the menus.. I highlighted the site-title area with google web dev tools. I circled the menus in blue, but I want them where I scribbled black. I'm assuming it has to do with CSS and somehow having those menus overlap the wrap/site-title area?

    View post on imgur.com

    April 10, 2015 at 10:01 pm #147442
    Christoph
    Member

    Hi,

    what child theme are you using?

    Your code looked pretty good on Genesis sample.
    (only tested with site title and site description, not an image logo)


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 11, 2015 at 6:10 am #147469
    sethbahookey
    Member

    Hey Christoph,

    It is on the Genesis Sample Theme ๐Ÿ™‚

    Maybe I'm using the wrong kind of CSS, but I tried moving the menus down with some margin-top, but anytime I do that it moves the menus and the whole site-title area down. I just can't seem to figure out how to move the menus down without the title-area moving as well.

    I know margins can be funky and have a tough time overlapping sometimes. So do you have some kind of recommendation as to how I can move the menus down so they are parallel with the "Endlessly Inconsistent" title?

    Thanks

    April 11, 2015 at 6:25 am #147472
    sethbahookey
    Member

    I figured it out!!!

    I had to mess around with z-indexs for this to work.

    
    .title-area {
             z-index: 0;
    
    .custom-left-menu,
    .custom-right-menu {
    	z-index: 100;
    }
    

    Now they overlap, boo ya!

    April 11, 2015 at 9:27 am #147502
    Christoph
    Member

    That's great!

    Iยดm glad you figured it out.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble