I see in my WordPress theme, there is no call of get_sidebar() in single.php etc. but sidebar comes. Here it is telling about customizing based on get_sidebar().

I want to use get_sidebar() to include sidebar so that I can think of customization.

Is there any default method to include sidebar from where it can come ?

  • Like a sidebar template? Create a file called sidebar.php in your theme folder. When you call get_sidebar() it will call the sidebar.php template file. – Howdy_McGee Nov 6 '13 at 20:56
  • 2
    what theme exactly are you working with? have you checked the other templates such as footer.php if the sidebar is called from there? – Michael Nov 6 '13 at 21:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.