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

Widget to header? WordPress

  • SOLVED

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 kadinca.com

Answers (1)

2013-01-19

Arnav Joy answers:

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

https://codex.wordpress.org/Function_Reference/register_sidebar

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

http://codex.wordpress.org/Function_Reference/dynamic_sidebar

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