When I go to configure widgets in Twenty Eleven theme, there are 5 “sidebars” available:
- Main sidebar
- Showcase sidebar
- 1st col of footer
- 2nd col of footer
- 3rd col of footer
In a child theme, I’d like to support sidebar on posts which is quite easy using these instructions but at the same time, main sidebar on the homepage should be different from the sidebar on the single pages.
Can I create a new “sidebar area” so that widgets can be dragged and dropped to it in the admin section? Or should I maybe use something like the 3rd column of a footer area (which I don’t use in my blog) to support this? Would I them replace get_sidebar()
with something different in the modified single.php
file?
I think I understand what looking for. I’ve put together some code I’ve taken from parts of my themes to give you an example.
For the functions.php:
For the sidebar.php:
The footer.php file:
You should try this out on a testing server first. As I mentioned, this is plucked from two different themes and hasn’t been tested together. It should work for you though. Let me know if you have any questions.