• 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

How to create full width background color on a page

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 › How to create full width background color on a page

This topic is: not resolved

Tagged: full width

  • This topic has 8 replies, 4 voices, and was last updated 10 years, 7 months ago by Remco Heijnen.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • May 31, 2014 at 2:37 pm #107658
    vandalais
    Member

    Hi Folks,

    I'm using the Parallax Pro theme and I would like to add a full width background color to different sections of a page. I still want the content inside the 1140px container but I'm trying to get a background color to go from one edge of the screen to the other.

    I can't find the tutorial I used to do this before. If I recall you have to move the content out of the container wrap or something like that.

    I'm looking for a solution that mimics http://newrainmaker.com/ "who should join" section.

    Any help is greatly appreciated.

    Thank you so much,
    Keith


    Follow me on Twitter

    http://redcubesocial.com
    May 31, 2014 at 2:40 pm #107659
    Brad Dalton
    Participant

    This should help http://www.genesisframework.com/markup.php


    Tutorials for StudioPress Themes.

    May 31, 2014 at 3:46 pm #107668
    vandalais
    Member
    This reply has been marked as private.
    May 31, 2014 at 4:18 pm #107675
    vandalais
    Member

    Hi Brad,

    Thanks for your quick response but I’m still lost. I still can seem to get the content to go full width.


    Follow me on Twitter

    May 31, 2014 at 5:51 pm #107680
    Tony @ AlphaBlossom
    Member

    Hi Keith,

    I posted a CSS solution to this question on Google + https://plus.google.com/u/0/108577381414098903993/posts/E3QytbHwAjg

    Toward the end of the thread...thought it might be of help to you.

    Have a great weekend,
    Tony


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    May 31, 2014 at 5:53 pm #107681
    vandalais
    Member

    I think I have a suitable solution. I created a page template and named it Full Width Landing.

    <?php
    /**
     * This file adds the Full Width Landing template to the Parallax Pro Theme.
     *
     * @author StudioPress
     * @package Parallax
     * @subpackage Customizations
     */
    
    /*
    Template Name: Full Width Landing
    */
    
    //* Add parallax-home body class
    		add_filter( 'body_class', 'parallax_body_class' );
    		function parallax_body_class( $classes ) {
    		
       			$classes[] = 'parallax-home';
      			return $classes;
      			
    		}
    
    //* Force full width content layout
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    genesis();
    

    I created the css class full_width_page and used this styling to center the <div> on the page.

    
    .full_width_page {
      max-width: 1140px;
      margin: 0px auto;
      padding: 20px;
      }

    Each <div> will have their own background color and styling.


    Follow me on Twitter

    May 31, 2014 at 6:00 pm #107683
    Tony @ AlphaBlossom
    Member

    Great, definitely a better way to go if you can make your page full width. I wasn't sure so the solution I posted to is useful if you can't make your entire page full width and you don't want to/aren't able to make all of the needed css adjustments.

    Glad you found your solution!


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    April 15, 2015 at 3:55 am #147971
    Remco Heijnen
    Member

    Hi Vandalais,

    I'm very curious how you did this. I am looking for a very same solution. I'm trying to implement yours but can you elaborate a bit more?
    like:
    - what is the html element? <div class="?">
    - can I do this with the Centric-pro body class as well? I think, yes.

    Thnx!

    April 18, 2015 at 4:32 am #148313
    Remco Heijnen
    Member

    hi, already found a solution that I wanted to share. Actually the most simple one I could think of. In centric-pro the site-inner is already without a width. Only the .wrap makes the content 1124px. Let's say I want a specific page that contains a few full width colored sections somewhere on the page. I only target this page with CSS.

    In CSS:

    .page-id-xx .wrap {
    max-width: none;
    }
    .section-x {
    background-color: something;
    }
    .section-content {
    max-width: 1124px;
    }
    

    What do you think of this?

    Thnx

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