I have moved my blog from one site to another and in the moving have changed the template. I would really like my new blog to have the same sidebars as my old one but I can't work out what to change.
Blogs in question: hazyknits.com (old one) knitwithcathair.com (new one)
Themes in question: Yoko (old one) Jenny (new one)
There may be some problems getting the code from the new site as it is a sub-theme. If necessary I can copy pieces of code here.
Thanks for your help!
Jatin Soni answers:
It could be theme specific widget that wont work with other theme. So if you are using widget wich comes with theme than you might need to copy widget code to your current theme.
I have read yesterday when updating wordpress to 3.3 new feature is keep widget while switching the theme. If you can get all widget with your earlier theme and can update your wordpress to 3.3 that might work for your case.
Francisco Javier Carazo Gil answers:
First of all, you will need to find in your DB the widgets. They are placed in wp_options and it is usually named:
* option_name: sidebars_widgets
* option_value: something like this:
Well continue. We log in phpMyAdmin we do the SELECT in our old blog:
WHERE option_name LIKE ("%widgets%");
We copy the option_value and then we go to our new blog (the DB of our new blog) and we make this query:
SET option_value = 'the_value_we_have_copied'
WHERE option_name = 'our_name'
Our_name is usually: "sidebars_widgets".
Remember also to have a place in sidebar.php where the call is defined:
<?php dynamic_sidebar( 'sidebar' ) ?>