Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active November 29, 2020 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanaf1979/846387410d9d462f103193d6b0fb4d5a to your computer and use it in GitHub Desktop.
Save vanaf1979/846387410d9d462f103193d6b0fb4d5a to your computer and use it in GitHub Desktop.
Gist for my "WordPress: Managing Your Theme's Footer With Widgets." tutorial/article on https://since1979.dev/wordpress-adding-widget-areas-to-your-themes-footer/
function register_widget_areas() {
register_sidebar( array(
'name' => 'Footer area one',
'id' => 'footer_area_one',
'description' => 'This widget area discription',
'before_widget' => '<section class="footer-area footer-area-one">',
'after_widget' => '</section>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
}
add_action( 'widgets_init', 'register_widget_areas' );
@livipress
Copy link

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment