• 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

Cannot get Nav Bar to line up with Header image

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 › Cannot get Nav Bar to line up with Header image

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 10 years, 7 months ago by Christoph.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 27, 2015 at 4:23 pm #149333
    sethbahookey
    Member

    So this is how I setup my front-page.php to display the main picture

    
    // * Add in main Picture for Compression closet
    add_action( 'genesis_header', 'front_page_image', 0);
    function front_page_image(){
    	echo '<img src="http://thecompressioncloset.com/wp-content/uploads/2015/04/the-compression-closet-front-page-8-bit.png">';
    }
    
    /* # CONTENT SECTION
    --------------------------------------------------------------------------------- */
    add_action( 'genesis_after_header', 'welcome_title' );
    function welcome_title() {
    	echo '<div class="welcome-title">';
    	echo '<h1>Welcome to the Compression Closet!</h1>';
    	echo '</div>';
    }
    
    add_action( 'genesis_after_header', 'home_top_widgets');
    function home_top_widgets() {
    	if( is_active_sidebar( 'top-left' ) || is_active_sidebar( 'top-right' ) ) {
    		echo '<div id="home-top" class="site-inner">';
    			genesis_widget_area( 'top-left', array(
    				'before' => '<div class="top-left" "widget-area">',
    				'after'  => '</div>',
    				) );
    			genesis_widget_area( 'top-right', array(
    				'before' => '<div class="top-right" "widget-area">',
    				'after'  => '</div>',
    				) );
    		echo '</div>';
    	}
    }
    

    If you go to the site, it seems to work, but the navbar will never stay flush with the picture 🙁 Should I be doing something different to get it to stick to the bottom of that picture in my front-page.php? Should I be using JS to make it stick to that somehow, or do I need to get fancy with CSS?

    Please help!

    http://thecompressioncloset.com
    April 27, 2015 at 11:31 pm #149355
    Christoph
    Member

    Hi,

    since you are not using .site-title you should remove it from the markup.
    That will save you some of the troubles you are having with the css.

    Header

    Since you header image doesn't end with the actual image, but with the end of the stylized symbol, you'll have to figure out the css to keep the primary navigation right underneath the image.

    Without the .site-header the media queries look already almost perfect.


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

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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