Tagged: widget area, widgets
- This topic has 4 replies, 2 voices, and was last updated 10 years, 10 months ago by Websiteguy.
-
AuthorPosts
-
February 10, 2014 at 2:27 am #20192WebsiteguyMember
Hi
I would like to add a widget area in my pages. I already did it but it is not in my child theme.
Also, I would like it under the title.
Thanks
February 10, 2014 at 10:57 am #20225SakinKeymaster@Websiteguy: Sorry I don’t understand your request. Please explain.
February 11, 2014 at 12:34 am #20255WebsiteguyMemberI would like to add a widget area which would be in all my pages. I would be under the title. This way I can add a widget to all of my pages instead of downloading a widget on page plugin.
February 11, 2014 at 12:46 am #20262SakinKeymaster@Websiteguy: Just copy
content-page.php
file from your parent theme to your child theme and add it below the title as below. Here you need to replace SidebarID with yours sidebarid that you have created.
<?php if ( is_active_sidebar( 'SidebarID' ) ) : dynamic_sidebar( 'SidebarID' ); endif; ?>
February 11, 2014 at 1:28 am #20268WebsiteguyMemberWorks great! You can see it here.
Thanks for all your help.
-
AuthorPosts
- The topic ‘Widget area on Page in Child Theme’ is closed to new replies.