Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Help me replicate sidebars WordPress

Hi there,

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: (old one) (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!


Answers (4)


Yoosuf Muhammad answers:

Perhaps replace the sidebar.php


Jerson Baguio answers:

Can you check your widgets it might be on your widgets.. you can set the same copy of your widgets from old to new one.

Jerson Baguio comments:

If you need more help can you send me your ftp and login details on both site so i can it for you


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:

FROM wp_options
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:

UPDATE wp_options
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' ) ?>