• 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

css text align padding (wrap content?)

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 › css text align padding (wrap content?)

This topic is: not resolved

Tagged: content align, content wrap, css, text-align

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 6 months ago by Victor Font.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 7, 2017 at 2:58 pm #204460
    brookelustig
    Member

    Hi everyone.

    I have been trying to get the ability to have full-width content section and was able to accomplish this by expanding the .site inner to go full width. Now the only hurdle I have left is to add some space between the edge of the page and the content (right now the text is stretching out full width).

    How do I accomplish this? Do I try to use text-align at .full-width-content .content or do I try to create a new wrap for the content that creates padding between the copy on the left and right side?

    I have included an example of a page that illustrates my problem. Any advice or tips would be much appreciated!

    Thanks,

    Brooke

    http://traveltopspot.com/compliance/
    April 10, 2017 at 5:46 am #204541
    Victor Font
    Moderator

    You can add or remove structural wraps to eny element in Genesis. This explains how: https://victorfont.com/understanding-genesis-dynamic-apply_filters-part-1/

    You might just want to jump to page 4.


    Regards,

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

    April 10, 2017 at 9:44 am #204559
    brookelustig
    Member

    Hi Victor,

    Great resource, so I assume what I would need is to create a wrap for genesis_entry_content? Do you have any advice on how I would accomplish this?

    Thank you again!

    Brooke

    April 10, 2017 at 12:45 pm #204578
    Victor Font
    Moderator
    add_theme_support( 'genesis-structural-wraps', array(
        'header',
        'nav',
        'subnav',
        'site-inner',
        'content',
        'footer-widgets',
        'footer'
    ) );
    
    add_action( 'genesis_before_loop', 'genesis_content_markup_open');
    add_action( 'genesis_after_loop', 'genesis_content_markup_close');
    
    function genesis_content_markup_open() {
    
    	genesis_structural_wrap( 'content' );
    
    }
    
    function genesis_content_markup_close() {
    
    	genesis_structural_wrap( 'content', 'close' );
    
    }

    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

© 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