I would like to replace the sidebar that appears on my homepage/archive pages with another, shorter sidebar on single post pages. I do not know how to create a sidebar and have it show in the widgets area or on the pages. Can I copy the sidebar file, rename it and then call it in the loop?
this will call a file sidebar-single.php;
you can create this from a copy of sidebar.php, then change the dynamic_sidebar() code to match the sidebar ID used in your register_sidebar() code in functions.php; http://codex.wordpress.org/Function_Reference/register_sidebar
that code should be similar to the existing register_sidebar() code of your theme.
please post the name and download link of your theme if you need more details.
Thanks for your response. I am reading the documentation now hoping I understand it. I am using PrimePress http://wordpress.org/extend/themes/primepress Now that I think about it it has a unique sidebar that I don’t think I can just copy. You can select one column or three colums. We only use the one column option and would do the same on the sidebar-single.php. Does this mean I need to write one from scratch?
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Replacing Sidebar on Single Post Pages’ is closed to new replies.