• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

How to limit the site header to content width in Genesis Sample

Last Updated on May 2, 2019 Favorited: 1 times

The New Genesis Sample have no max-width CSS for site header which makes the site header full width. This tutorial provides the steps to limit the site header content under <wrap> in Genesis Sample 2.6.0+

Default:

After:

You can see that default max-width like .site-inner have a max-width: 1140px; with a padding of 30px to left and right.

We will use the same width for our site header wrap.

Add the following CSS in style.css

.site-header .wrap {
    max-width: 1140px;
    margin: 0 auto;
}

and we will remove padding from .site-header and will add it under .site-header .wrap

use this (recommended).

.site-header {
    padding: 0;
}

.site-header .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}

.site-header .nav-primary .wrap {
    padding: 0;
}

Related Posts

  • Convert Search form into the widget area in Essence Pro theme
  • Sticky site header having before site header widget section in Monochrome Pro
  • Left and Right Navigation Menu having title area in center to the site header in Genesis Sample
  • Left and Right widget section having title area in center to the site header in Genesis Sample
  • Customize Site Header in Genesis

Categories: Free Content, Genesis Tutorials Tags: site header

Reader Interactions

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service