wordpress theme not importing correctly from local to online - wordpress

Hi I am currently developing an Wordpress site offline on local server and want to upload to my domain online. I don't need to transfer the database, but I would like my pages, theme, widgets to work correctly.
What I am doing:
Copying Wordpress directory to domain directory through ftp.
Exporting everything in local server Wordpress and importing in
online Wordpress.
All my pages/posts are transferred, and my theme is installed but not set default. When I select it, everything is set to the themes original defaults, not like changed on the local server (for example tagline, background, etc). Also the widgets are the default settings.
Am I doing something wrong?
I am using Wordpress 3.4.2
Thanks!

Yes, you have just forgotten that some options for your themes are actually stored as WordPress options, so if you don't upload your database, you will not transfer these settings.

I've written a tutorial explaining step-by-step how to transfer a WordPress site to another server: http://www.sebastianbroways.com/wordpress-transfer/
If you follow each step the site should retain all the settings, including the template preferences. Good luck.

Related

After migrating a WP site, changes made in the Customizer don't appear on the new site

I have a Wordpress site, built using the Hestia theme, on my local PC. I'd like to push the full site, exactly as everything looks locally, to production. I'm able to migrate the codebase, database, plugins, base theme, etc. using Duplicator plugin to prod.
The problem I have is that I did a variety of customizing to the theme in the WYSIWYG theme editor in Wordpress (the customizer) on my local PC and those updates aren't coming through to production with any type of import that I do (I've tried the duplicator and the Wordpress import tool).
Is there something I'm missing or doing wrong in the process? How do I get that customized theme / site to production looking exactly like it does on my local PC? Thanks!
The customizer contents are saved in the database AFAIK.
There is a plugin for export/umport of customizer data: https://wordpress.org/plugins/customizer-export-import/
I just ran into a similar issue and just got done banging my head against the wall, so I figured I'd share. My particular theme was Blocksy (though it sounds like your issue may be imilar).
It turns out that the theme settings were being stored in a wp_options entry named theme_mods_blocksy-child. I confirmed that they existed in the new database after restoring from the backed up SQL. However, as soon as I would visit the new WordPress installation, that entry was being deleted for some reason. I still don't know why this was happening, but luckily the solution was simple in my case. I created a backup of the theme settings here:
https://my_wordpress_site/wp-admin/customize.php
Exported the settings from: General Options > General > Manage Options
Then imported the backed up settings in the same fashion on the new installation.
It sounds from what I was reading that the customizer export import plugin would work well if your theme does not make this kind of import/export functionality readily available from the Customization screen like the theme I was using does.

How do I copy a woocommerce application from live server to localhost

I am new to WordPress. I have a WordPress woocommerce application, which I want to copy to local server.
But all the links still point to the same server. E.g. when I login it takes me to live website as the action target is sth like : www.example.com/wp-login.php.
How to change all links to point to local servers so that I can develop locally.
I have done the same with WP CLONE Plugin.
https://wordpress.org/plugins/wp-clone-by-wp-academy/
Try this.
WordPress has absolute links inside its database, i.e. http://yoursite.org. To make site functional on another domain or localserver you have to change all links inside database. Any manual manipulation with database may corrupt it.
The robust way to move your site is usage of Duplicator plugin.
Easiest way is to use WP All in One plugin, you export whole wordpress and woocommerce, and only thing you need to change when you set it to localhost are permalinks

Wordpress Avada theme

Hi all I am facing a problem wit avada theme while the theme is perfect at localhost but when I upload it on live server it get's the localhost links so when I change localhost links on live server theme's maximum part gets reset is there any proper way of uploading the avada theme.
Changing URLs in a text database .sql dump will break the serialized data that stores widget settings, theme options and more. Use interconnectit.com WordPress Serialized PHP Search Replace Tool to correctly find/replace URLs in the database.
If that tool does not work, and your theme still breaks after use, it means the theme does not correctly serialize data in the database.
Install a new plugin All-in-One WP Migration – WordPress plugin on both local host Wordpress as well as on hosting Wordpress Admin
Export the Site From Local Host Wordpress
import the site to Hosting Server wordpress
all the url replace automatically no need to change url one by one.
This can be done by change/replace all the localhost url to your live server on .sql file fist in any editor and then upload it to new server. it may work for you.

How to migrate only wordpress theme from localhost to live server

I am currently working on a project, actually we an online site, we are thinking of revamping this, on this online site we have many blogs already,
We have purchased a theme also and doing many customization on localhost.
How is this possible to update the theme with customization and pages on online server from localhost without affecting the blog posts ??
OK these are the steps that i do for putting site from local to live.
First move full wordpress site including all wp-admin,wp-content,wp-includes and files to you live server
then export you local server database
and this is the trick, open the .sql in a text editor like dreamweaver then replace all links like http://localhost/site to http://www.livesite.com
and now move or import this db to live server and apply settings in wp-config.php.
it always works for me.

How to back up wordpress site to be restored after a clean installation

My Wordpress blog appears to have been hacked and now blogs do not save and any changes I make such as approving a comment do not have effect. I am trying to backup my website so as to uninstall wordpress and perform a clean re-instillation. I want to create a backup so that when i restore the website will appear with everything the same as before: posts, images, links, colors, comments, themes, pages, etc. I have already backed up the MySQL database successfully. How do i backup the rest of the site.
Please tell me how to backup the site and also how to restore the site.
Thanks
You need to backup both your database and your Wordpress installation. The main resource to use for this is the Wordpress site:
http://codex.wordpress.org/WordPress_Backups
If you have phpmyadmin installed you can do a database dump from ther. If you don't have this installed then use mysqldump.
Wordpress installation backup can be initiated through the following URL:
http://[yourwordpressurl]/wp-admin/export.php
That will contain "your posts, pages, comments, custom fields, categories, and tags".
These links should get you started:
http://www.geeksaresexy.net/2008/01/29/how-to-backup-and-restore-your-wordpress-blog/
http://www.siteground.com/tutorials/wordpress/wordpress_backup.htm
http://codex.wordpress.org/WordPress_Backups
Good idea to look at FAQ: My site was hacked « WordPress Codex and How to Completely Clean a Hacked Wordpress Install.
best thing to do is to manually copy the database, as wordpress restore has an upload limit on the built in restore function. so if you've been blogging for a while, this can be really bad.
mysqldump -u yourUsername -p yourDatabaseName > databaseName.sql
will create the file databaseName.sql this is a full clone of all your database info (all your posts & wordpress configs)
then you can restore later with
mysql -u yourUsername -p yourDatabaseName < databaseName.sql
I figured it out. One way to cleanly install a new version of Wordpress but not lose your website is the use the Wordpress export feature as mentioned by Jon.
http://codex.wordpress.org/Tools_Export_SubPanel
This exports your blog to an XML file that contains all content of your site: posts, comments, authors, pages, etc. However, images do not go with. However when importing this XML file there is an option to download and import the attachments automatically which can be done if the original site is still online. So what I did is export my XML file, upload it to a wordpress blog installed on a subdomain automatically getting the attachments, then export an XML file from the subdomain to import into the actual wordpress site. This way my attachments were simply moved around from site to subdomain back to site. This made it easy because I did not have to handle backing up my attachments manually.
So what I did was back up my theme, export my blog to XML, then delete wordpress and my database then reinstall it with a new database on both my site and a subdomain of my site.
Then I imported my XML file and put my theme in the themes folder of the subdomain. Then I exported an XML file of this subdomain copy of my site and imported it into my real site. This made my blog have all the content correct and the theme right but none of the links, plugins, or colors correct. I then had to customize wordpress through the panel to get it back to the look and feel it was. For this It was lucky I had a stored copy of the site to refer to.
This process was long because I actually had to rebuild my site twice, one for the subdomain and then again for the actual thing. But it fixed my problems.
You can simply use EverLive.net. No need to install any plugin. No need for shell access. With this service you can simply make your wordpress website backup to the cloud. One-click restore option is also available wheneven you need to restore.

Resources