Skip to main content
FolksSpeakersPluginsThemesEventsSnippetsShippedCommunityResources
Login Join
Snippet · PHP

Register a Footer Utility Widget Area

Shared by Yusuf mudagal · May 3, 2026 · @widgets_init

2 views
Back to Snippets

Adds a lightweight widget area that theme developers can render in footer templates.

add_action( 'widgets_init', 'wpfolks_register_footer_utility_sidebar' );

function wpfolks_register_footer_utility_sidebar() {
    register_sidebar( array(
        'name'          => __( 'Footer Utility', 'wpfolks' ),
        'id'            => 'footer-utility',
        'before_widget' => '<section id="%1$s" class="widget %2$s">',
        'after_widget'  => '</section>',
    ) );
}