Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20192
    Websiteguy
    Member

    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

    #20225
    Sakin
    Keymaster

    @Websiteguy: Sorry I don’t understand your request. Please explain.

    #20255
    Websiteguy
    Member

    I 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.

    #20262
    Sakin
    Keymaster

    @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; ?>

    #20268
    Websiteguy
    Member

    Works great! You can see it here.

    Thanks for all your help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Widget area on Page in Child Theme’ is closed to new replies.