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 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
add comment

1 Answer

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