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

Widget to header?

  • 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-18

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