Well this is a pretty hacked up method, but its the only
thing I have working right now..
For only 2 themes this isnt so bad..Sorry CP this might be too painful for "several themes"!
create the same sidebars in BOTH themes and name them something you can remember
- In functions.php (in each template folder), adjust your register_sidebar code to something like:
register_sidebar(array('name'=>'Theme 1 bar 1'));
register_sidebar(array('name'=>'Theme 1 bar 2'));
register_sidebar(array('name'=>'Theme 2 bar 1'));
register_sidebar(array('name'=>'Theme 2 bar 2'));`
Then use MartinStudio's code to call the particular sidebars in each theme's sidebar.php, and to duplicate widgets to use more than once. You dont have to use his statements per page etc if you just want to change per theme - so take out the If satements and just make it whatever you need..
- ie, for theme 2 sidebar 1 it would be:
- For duping the widgets just copy his instructions for whatever widget you want more of.
NOW when you go to the widgets sidebar management you will see all 4 sidebars and be able to put multiple copies of the same widget on any sidebar.
Then when you switch themes the same sidebars are always shown in manager, but you should only see the 2 related sidebars on the site! :)
I cant link to mine cause its all Local right now. but it works. and its friday.