Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using a premium theme, which I purchased and would like to add a social widget to the static front page. I've made a static page with a image slider my home page.

An example of the page can be found here.

How do I go about adding a social widget to this page?

Any help will be greatly appreciated. Thanks in advance.

share|improve this question
    
What is a social widget? Please clarify your question. –  toscho Mar 20 '12 at 6:13
add comment

1 Answer

In order to add widgets to any page you need to have a dynamic sidebar configured. Whether or not you have a dynamic sidebar that is visible from your home page depends on the theme.

If you don't, you can initialize a new sidebar by using the register_sidebar() function in your functions.php file (http://codex.wordpress.org/Function_Reference/register_sidebar)

And then use the id of the sidebar in the dynamic_sidebar() function (http://codex.wordpress.org/Function_Reference/dynamic_sidebar) where you want the widget to appear on your homepage (home.php or index.php).

Then you just need to goto Appearance -> Widgets in the backend, and add your widget to your new sidebar.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.