• 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

Change the Full Width Template's Width – How to?

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 › Change the Full Width Template's Width – How to?

This topic is: not resolved

Tagged: genesis layout, layout

  • This topic has 3 replies, 2 voices, and was last updated 13 years, 4 months ago by blogjunkie.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 24, 2013 at 9:46 pm #47613
    works
    Member

    Is it possible to change the full width's template's width, but only on some pages?

    Depending on the content, the page is too wide which makes it challenging to read the content.

    One of my sites is in the free TwentyEleven theme, and when i need narrower page, i simply choose the sidebar template... but as i do not use any sidebars on that website, the side-bar template appears like full width (no sidebar) one but only a little bit narrower, which is absolutely perfect for mobile and for wide screen laptops too.

    i can do the same in Genesis. Choose the sidebar template. The page will appear as narrower and having no sidebar if i put and save a text widget with zero text into the sidebar, but the content on the page will look skewed either to the left or to the right depending on which sidebar template is chosen, and i don't know how to make it centered then.

    So my question is: How to make most pages appear to be on Full-width (no-sidebar) templates; but how to make not all, but only_some pages appear a little bit narrower?

    Thank you in advance!

    June 25, 2013 at 1:03 am #47626
    blogjunkie
    Participant

    Here's how I've implemented it here: http://clickwp.com/wordpress-support/

    In the layout settings metabox:

    1. Choose the full width layout
    2. Add a custom body class, e.g. "landingpage" (without the quotes)

    Now in your style.css, you'll have to add this piece of code:

    .full-width-content.landingpage #content {
    	padding: 0 85px;
    	width: 820px;
    }

    padding: 0 85px; is shorthand for padding: 0 85px 0 85px;, where the 4 values represent top, right, bottom and left (clockwise). padding-left + padding-right + width must equal to the width of your full-width content template.

    If you're a ninja coder, you can also add a new layout option with the code and examples from these posts:

    Custom Layout Options in Genesis

    Genesis Explained Layout Functions

    Good luck!


    WordPress evangelist, Nike runner, Apple fanboy.
    Work: ClickWP WordPress Support, Play: adventures of a blogjunkie. Talk to me on Twitter @blogjunkie

    June 26, 2013 at 9:13 pm #47953
    works
    Member

    Wow thank you.

    Would that change the width only on some pages, or on all pages that use the full-width template? (i need only on some).

    July 12, 2013 at 7:32 pm #50497
    blogjunkie
    Participant

    Your custom body class would only affect the pages it's applied to


    WordPress evangelist, Nike runner, Apple fanboy.
    Work: ClickWP WordPress Support, Play: adventures of a blogjunkie. Talk to me on Twitter @blogjunkie

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

© 2026 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