• 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

100% Width Footer

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 › 100% Width Footer

This topic is: not resolved

Tagged: 100%, custom, footer, hooks, Width

  • This topic has 2 replies, 3 voices, and was last updated 7 years ago by ᴅᴀᴠɪᴅ.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 2, 2016 at 2:05 pm #180459
    Porter
    Participant

    I'm trying to make my entire footer 100% page width.

    From the research I've done, the best way to achieve this is to simply remove the footer, and then add it again using the after_genesis hook, so that it's contained outside of the wrap (the wrap being the reason max width isn't 100% screen). Doing this works, but it removes all of the css from .site-footer, meaning In my custom function where I create my custom footer, I need to wrap everything in custom classes, or re-wrap them in .site-footer, etc etc.

    I'm completely fine with this, as it only takes a few seconds to do, but for learning purposes, I'm wondering if there's simply a way to retain the markup, but get the footer to be 100%. It doesn't seem like there's a way to retain the markup while pulling the footer out of the wrap, or a way to redefine the max width / width, as the element I'm redefining is a child of the wrap. Either way, no real "issue" here, just trying to fully understand what I'm working with - let me know!


    Buy me a beer? | Try DigitalOcean VPS Hosting

    March 2, 2016 at 3:08 pm #180463
    Christoph
    Member

    Hi,

    you could try to move the markup, too.
    That´s how it is added in /lib/structure/footer.php:
    add_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    add_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    March 2, 2016 at 4:26 pm #180468
    ᴅᴀᴠɪᴅ
    Member

    There are two ways you can do this without having to move the footer. The first is to remove the wrap from the site footer. This is the code used to add the wraps. If this exists already in your child theme, then just just remove the 'footer' from the list at the bottom. If it doesn't exist, add it and keep only the elements which you need the wrap for.

    //* Add support for structural wraps
    add_theme_support( 'genesis-structural-wraps', array(
    	'header',
    	'nav',
    	'subnav',
    	'site-inner',
    	'footer-widgets',
    	'footer'
    ) );

    The other way of doing it is with CSS, this will allow you to keep the html markup exactly the same;

    .site-footer .wrap {
       padding-left: 0;
       padding-right: 0;
       max-width: 100%;
    }

    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

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