• 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

Adding container to footer widget area

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 › Adding container to footer widget area

This topic is: not resolved

Tagged: center, container, footer, widgets

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 2 months ago by M1kaltoft.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 9, 2014 at 4:49 pm #123656
    M1kaltoft
    Member

    Hey,

    I'm working with a child theme and I could use some help.

    My theme does not come with a footer widget area to start, so I have added

    add_theme_support( 'genesis-footer-widgets', 3 );

    to the function.php file plus the default styling from the Genesis parent theme.

    So far, so good. Everything works great. However, my theme is using a fullwidth layout, so the footer widget are close to the viewport side in both sides, I want to center it using Bootstraps "container" class.

    What I would like to accomplish is to too add (see bold).

    <div class="container">

    
    <div class="footer-widgets"><div class="footer-widgets-1 widget-area"><section id="text-5" class="widget widget_text"><div class="widget-wrap"><h4 class="widget-title widgettitle">TITLE!</h4>
    			<div class="text widget">Content</div>
    		</div></section>
    </div><div class="footer-widgets-2 widget-area"><section id="text-4" class="widget widget_text"><div class="widget-wrap"><h4 class="widget-title widgettitle">TITLE!</h4>
    			<div class="text widget">Contentl</div>
    		</div></section>
    </div><div class="footer-widgets-3 widget-area"><section id="text-6" class="widget widget_text"><div class="widget-wrap"><h4 class="widget-title widgettitle">TITLE!</h4>
    			<div class="text widget">Contentl</div>
    		</div></section>
    </div></div>
    

    </div>

    How can I add the <div class="container"> to the beginning of the footer widget area and </div> to the end of the footer widget area.

    I'm sure there is a hook available, however, I haven't been able to find it

    Thanks a lot!
    Sincerely,
    Mika

    Ps. I'm working localhost, so I can't leave a URL unfortunately.

    September 10, 2014 at 2:12 am #123698
    Craig
    Member

    While I can't help with adding Bootstrap's .container class, it is possible to add a Genesis .wrap class, which would essentially accomplish the same thing.

    In your functions.php file, there should be a line like:

    add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer' ) );

    The footer widgets you have added may not be included by default, as like you said, they weren't in your theme originally. To add them, you would change it to look like:

    add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );

    Hope this helps.


    @craigsimps | craigsimps.com

    September 10, 2014 at 10:19 am #123755
    M1kaltoft
    Member

    Hey Craig!
    Thanks for your reply.

    Actually the structural wrap function loos like that:

    add_theme_support( 'genesis-structural-wraps', array ('') );

    When adding what you mentioned, absolutely nothing happened on the website, unfortunately.

    There is no smart/easy way to add a <div> before the <div class="footer-widgets"> code starts and after it ends with </div>>

    I really appreciate your time 🙂

    Sincerely,
    Mika

  • 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

© 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