WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to WordPress and need help. I am currently working on the site http://ecentriconline.com/surferbeachfront.

On this page, I want to display the left hand side as a widget. Right now, the left hand side is coded in the index.php page.

Please let me know the steps that I need to do to achive this.

share|improve this question

To speak generally, you need to define a sidebar for your theme (sidebars contain widgets) and display that sidebar in your template.

  1. In your theme's functions.php file, register a dynamic sidebar using register_sidebar()
  2. Create a sidebar.php file in your theme directory that calls dynamic_sidebar()
  3. Make sure your other template files (or header.php/footer.php if that is more appropriate) calls get_sidebar()

If you need some more specifics, please feel free to update this question or ask a new question. (Seeing code is good, we can provide feedback on code.)

share|improve this answer

Your Answer


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.