Back to Community

How to Add and Customize Footer Widgets in the Twenty Twelve Theme

20 threads Sep 10, 2025 ThemeTwenty twelve

Content

Many users of the popular Twenty Twelve theme want to add dynamic content to their site's footer using widgets. However, the theme does not include a dedicated footer widget area by default. This article explains the most common methods for adding and styling footer widgets in a Twenty Twelve child theme.

Why Doesn't Twenty Twelve Have Footer Widgets?

The Twenty Twelve theme was designed with a specific layout that does not include a widgetized footer area. Instead, it offers two front-page widget areas that appear at the bottom of the page when using the Front Page template. For users wanting traditional footer widgets across all pages, customization is required.

Method 1: Registering a New Footer Widget Area

The most common solution is to create a child theme and register new widget areas in your child theme's functions.php file. Based on community discussions, here is a reliable code snippet:

function mytheme_widgets_init() {
    register_sidebar( array(
        'name' => __( 'Footer Widget Area', 'mytheme' ),
        'id' => 'sidebar-4',
        'description' => __( 'Appears in the footer of the site', 'mytheme' ),
        'before_widget' => '',
        'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'mytheme_widgets_init' );

After adding this code, a new "Footer Widget Area" will appear under Appearance > Widgets in your WordPress dashboard.

Method 2: Displaying the Widgets in Footer.php

After registering the widget area, you need to display it. Copy the footer.php file from the parent Twenty Twelve theme to your child theme directory. Then, add the following code where you want the widgets to appear (usually before the closing </footer> tag):

<?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?>
    <div class="footer-widgets">
        <?php dynamic_sidebar( 'sidebar-4' ); ?>
    </div>
<?php endif; ?>

Method 3: Styling Your Footer Widgets

A common issue is that footer widgets inherit CSS styles from the main sidebar. To target them specifically, use the unique ID or class you assigned. For example, to style the container, you can use the ID #footer-widgets or a custom class. Using a browser's inspect tool (like Chrome Developer Tools) is highly recommended to identify the correct CSS selectors for your specific setup.

Important Considerations

  • Child Theme Required: Always use a child theme to make these modifications. This prevents your changes from being overwritten when the parent theme is updated.
  • CSS for Layout: To create a multi-column layout (e.g., three widgets side-by-side), you will need to add custom CSS to your child theme's style.css file to float the widgets and set their widths.
  • Plugin Conflicts: Some users reported issues with footer widgets after updating WordPress or certain plugins. If your widgets disappear, deactivate plugins to check for conflicts and ensure you are still using the correct child theme.

By following these steps, you can successfully add a functional and stylish widgetized footer to your Twenty Twelve theme.

Related Support Threads Support