logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

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

This question has been answered.

dantnan | 01/18/13 at 9:07pm Edit
Tutorial: How to assign prize money


(2) Responses

See a threaded view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    01/18/13
    9:15pm
    Arnav Joy says:

    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

  • avatar
    Last edited:
    01/18/13
    9:34pm
    dantnan says:

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

This question has expired.



Naveen Chand, dantnan voted on this question.



Current status of this question: Completed



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.