Pay money and get answers for your WordPress questions (more info)

Widget to header?


I want to add the social counter widget to header and not in sidebar.

The social counter at sidebar must be added to header's white right place.

Site is

Answers (1)


Arnav Joy answers:

you have to first register a sidebar using following at functions.php

and then you have to call it using following at header.php

let me know if you need any other help

dantnan comments:

<?php $args = array(
'name' => __( 'Header social counter' ),
'id' => 'headerwidget',
'description' => 'widget for header',
'class' => 'widget widget-counter col3',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>' ); ?>

how am i gona fill 'before_widget' 'after_widget' 'before_title' 'after_title' ??