Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Widget to header? WordPress


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' ??