• I have been using this theme for my website (www.puzzledbythepieces.com) for a while and love it! Is there a way to add a widget to the top of my webpage next to the title of my blog? I was thinking about putting the “Subscribe to my blog” widget up there if it is possible. If not, I think that would be a wonderful option to have in the future.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • hi,
    yes you can add it. so far i know you have to have create widget area for that.

    Thanks,
    Farhan Girach

    Thread Starter sarahsavs1

    (@sarahsavs1)

    Do you know how to create a new widget area for it? I am fairly new to all of this. :-/ I am uncertain how to get the widgets to appear anywhere but the sides and bottom of my page.

    yoes you can create your own widget area according to your requirement…

    Add to function.php file :-

    <?php
    /**
    * Register Widget Area.
    *
    */
    function wpgyan_widgets_init() {

    register_sidebar( array(
    ‘name’ => ‘Header Sidebar’,
    ‘id’ => ‘header_sidebar’,
    ‘before_widget’ => ‘<div>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h2 class=”rounded”>’,
    ‘after_title’ => ‘</h2>’,
    ) );
    }
    add_action( ‘widgets_init’, ‘wpgyan_widgets_init’ );
    ?>

    Add to location where you want to place widget :-

    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘header_sidebar’) ) :endif; ?>

    Thanks,
    Farhan Girach

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Widget Question’ is closed to new replies.