I made a change of my existing domain to new domain.

I took the backup of the database from old site and imported it into new database Used the search and replace widget to replace the old url with new url

But i cant seem to see the sidebar widgets. I can see them on the admin panel but they are not visible on site.

Any pointers on what could be the cause. I changed the theme to twentyten and the sidebar is visible

1 Answer 1


Don't replace old url to new url in database file. wp-login.php can be used to (re-)set the URIs. Find this line:

require( dirname(__FILE__) . '/wp-load.php' );

and insert the following lines below:

Do comment/remove these lines. (once the database is updated)

update_option('siteurl', 'http://your.domain.name/' );
update_option('home', 'http://your.domain.name/' );

for more information http://codex.wordpress.org/Moving_WordPress

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.