How To Add A New Sidebar Widget Area
-
Hi.
I am creating a child theme to the Storefront theme, and I want to add a new widget area below the Storefront sidebar. I want to do this in my functions.php file, and not overwrite a Storefront theme file.
I have added this to my functions.php file:
register_sidebar( array( 'name' => 'Below Sidebar Custom Techsaker Widget Area', 'id' => 'below-sidebar-custom-techsaker-widget-area', 'description' => 'A below sidebar custom techsaker widget area.', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3>', 'after_title' => '</h3>' ) ); dynamic_sidebar( 'below-sidebar-custom-techsaker-widget-area' );
The widget area shows up in the WordPress-admin, but it doesn’t appear on my pages.
I would greatly appreciate if someone could show me how to do this.
Thanks.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How To Add A New Sidebar Widget Area’ is closed to new replies.