• 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

Decoupling .site-inner and .wrap

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 › Decoupling .site-inner and .wrap

This topic is: resolved

Tagged: .site-inner, full, genesis, sample, theme, Width, wrap

  • This topic has 3 replies, 2 voices, and was last updated 5 years, 1 month ago by Victor Font.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 29, 2018 at 11:58 am #215834
    Porter
    Participant

    The sample theme has these two classes comma separated. By default, the structural wraps are applied to the header, site-inner, and footer. Even if you change the structural wraps to remove site-inner from that situation, the .site-inner and .wrap classes are comma separated, so you still have the same width of 1200px for site-inner. I'm looking to use the .wrap from time to time, but have most of the site full width. Looking around, some themes (such as Business Pro) have removed this.

    Is there any reason I shouldn't decouple .site-inner and .wrap? My ultimate goal is to have a full width site, where some site-inner sections have a wrap, but many are full width from edge to edge.


    Buy me a beer? | Try DigitalOcean VPS Hosting

    January 29, 2018 at 1:10 pm #215840
    Victor Font
    Moderator

    You can change the style sheet anyway you want. If you want different wraps in specific pages, you can create specific CSS using the page-id. .page-id-xxx .wrap


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 29, 2018 at 1:25 pm #215843
    Porter
    Participant

    I know I can change it in any way, just trying to confirm that my reasoning is a good reason to break the setup the sample theme uses.

    As for specific page wraps, it's more that I'll want specific elements to contain the wrap (such as every other child element within site-inner). I'll either manually code them in my templates (or partials being pulled into templates), or inject them with PHP. My main hiccup was fighting with the wrap / site inner tie, and trying to break out of that for full screen width. I can break out by using width set to 100% vw, but it makes more sense to just go full width by default, and wrap when needed, as the overall feel of the site is full width.


    Buy me a beer? | Try DigitalOcean VPS Hosting

    January 29, 2018 at 4:58 pm #215848
    Victor Font
    Moderator

    Genesis has hooks that allow you to add wraps to just about any element. Don't over think what you want to do: https://victorfont.com/understanding-genesis-dynamic-apply_filters-part-1/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • 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

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