• I am using the Point theme for a news and advertising website and want to place an ad widget in the header, and have it float to the right. (I still want my logo to appear in the left side of the header.) I have created a new widget area in the theme’s functions.php using the following code:

    /* Create a new widget area */

    function initialize_widget() {

    register_sidebar( array(
    ‘name’ => ‘New Widget Area’,
    ‘id’ => ‘new_widget_area’,
    ‘before_widget’ => ‘<div>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h2>’,
    ‘after_title’ => ‘</h2>’,
    ) );

    }
    add_action( ‘widgets_init’, ‘initialize_widget’ );

    I have placed a widget in the ‘New Widget Area’ that appeared in my admin panel and put my ad in the widget.

    I have installed the ‘Simple CSS for widgets’ plugin so I can add the styling code with a copy and paste.

    My question is this: Where can I find the code I need to tell the ‘New Widget Area’ that it should appear in the upper right corner of the header?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Placing a new widget area in the header’ is closed to new replies.