[Theme Brasserie] Add Blog Subscription Widget to Main Page Header
-
I’m trying to add a subscription widget to the header of my main page with limited success. You’ll see it’s blank right now on my website The Healthy Toast
I first realized my theme didn’t support header widgets, so I added the following code to my functons.php file under function brasserie_widgets_init(){.
register_sidebars(1,array( 'name' => __( 'Inside Header', 'brasserie' ), 'id' => 'sidebar-2', 'description' => __( 'Widget area for header', 'brasserie' ), 'before_widget' => '<div id="%1$s" class="headwidget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h3>', 'after_title' => '</h3>', ));
This “seemed” to work as it now shows up as a location where I can drag widgets under my widgets panel. However, when I drag my subscription widget into the newly created “Widget area for header”, it refuses to show up on any page.
I would like to do this with the Blog Subscriptions (Jetpack) Widget, but I’m skeptical this will work. Is there a subscription widget which natively supports being placed in a header or footer?
This is as far as I have gotten. Let me know if any of you have solved or know how to solve this issue! Many thanks in advance.
- The topic ‘[Theme Brasserie] Add Blog Subscription Widget to Main Page Header’ is closed to new replies.