How To Update The Theme

This documentation will guide you  how to update theme .

1.Notices before you update theme

Upload theme via FTP or WordPress is the traditional method and requires you to download the theme files from ThemeForest first.

Below are some tips you need to care before processing any update

Tip 1 : Be sure to take a full site and database backup. This step helps you avoid being lost data.

How to backup site and data.

Backup site

There are three tools and plugins that you can use to completely automate the WordPress backup process.

  • VaultPress

It  is a WordPres backup solution developed by Automattic (the company behind WordPress.com blog hosting service).You must pay  service with plans starting from $9/month.

VaultPress automatically backups everything on your site. This includes all your content, settings, themes, and plugins.

  • BackupBuddy

It is a premium WordPress backup and site restore plugin.

You must pay from $80 which gives you access to one year of free support and updates.

  • BackWPup

It  is a Free WordPress backup plugin with a paid version as well. The free version would work most blogs and small business websites.

You can easily schedule automatic backups for your WordPress site and store them on your Dropbox, Google Drive, Amazon S3, or other cloud storage services. You can also store your backups on your own server or email them to yourself.

Backup data.

Step 1 – Navigate to the Dashboard > Theme Options > Import / Export tab.

Step 2 – Find the ‘Export Options’ section,

Click the ‘Copy Data’ button to copy the Theme Options data directly.

Click the ‘Download Data File’ button to download the .JSON file.

Finally, click the ‘Copy Export URL’ button to copy and paste your site’s Export URL.

Step 3 – To import your backup Theme Options, find the ‘Import Options’ section and click the ‘Import Contents From File’ button and paste the contents of the .JSON file you’ve exported. Alternatively, you can also click the ‘Import From URL’ button and paste the Export URL of another site to copy those Theme Option settings.

 

Tip 2 : Check your installation and server.

It makes sure  that you are running WordPress versions 4.7.x or higher ; PHP 5.6.x or higher, and mysql 5 or higher.In addition you also check to ensure that your web host has the minimum requirements to run WordPress. and they are running the latest version of WordPress.

 

Tip 3 : System status limit. It plays role that your site runs smoothly.

Firstly, you must check PHP memory limits – the maximum amount of memory (RAM) that your site can use at one time. There are two methods that change your PHP Memory limit

 

The first method is to change in php.ini file.

Step 1 : Locate your PHP.ini file. If you can’t find it, then you can create your own PHP.ini file in the root folder of your WordPress installation.

Step 2 : If you find your existing PHP.ini, open the file and locate the following line of code (xx represents a number): memory_limit = xxM;. Then change xxM to your desired limit. For example, 256M.

Step 3 : If you created your own PHP.ini file, then add the same code inside it: memory_limit = 256M;

Step 4 : Save your changes, and reboot your local host or server.

 

The second method is to change your wordpress memory limit in wp-config.php file.

Step 1 : Locate your wp-config.php file in the root folder of your WordPress installation.

Step 2 : Open the wp-config.php with a text editor program (Notepad or TextEdit) and add the following line of code after ‘define(‘WP_DEBUG’, false);: define (‘WP_MEMORY_LIMIT’, ‘256M’);. Simply change the value to the recommended value. For example, 256M.

Step 3 : Save the file and refresh your System Status tab. If the WP Memory Limit turns green, then you have successfully increased your WP Memory Limit.

Secondly, you must check PHP time limit – the amount of time (in seconds) that your site will spend on a single operation before timing out.

 

 

The third method : change php time limit in .htaccess  file

Step 1 – Locate your .htaccess file which is usually in the root folder of your WordPress installation.

Step 2 – Open the .htaccess file with a text editor program (Notepad or TextEdit) and add the following line of code: php_value max_execution_time 300. Then just put in the recommended value. For example, 300.

Step 3 – Save the file and refresh your website.

 

Thirdly, you must check PHP Max input vars – the maximum number of variables your server can use for a single function to avoid overloads.

 

Method 1 : Change PHP Max input vars in php.ini  file.

 

Step 1 – Locate your PHP.ini file. If you can’t find it, then you can create your own PHP.ini file in the root folder of your WordPress installation.

Step 2 – If you find your existing PHP.ini, open the file and locate the following line of code (xx represents a number): max_input_vars = xx; And set it to your desired limit. For example, 1540.

Step 3 – If you created your own PHP.ini file, then add the same code inside it: max_input_vars = 1540; Simply change the value to the recommended value. For example, 1540.

Step 4 – Save your changes, and reboot your local host or your server.

 

Method 2 : Change PHP Max input vars in .htaccess  file.

 

Step 1 – Locate your .htaccess file which is usually in the root folder of your WordPress installation.

Step 2 – Open the .htaccess file with a text editor program (Notepad or TextEdit) and add the following line of code: php_value max_input_vars 1540. Simply change the value to the recommended value. For example, 1540.

Step 3 – Save the file and refresh your website.

 

2.How to update theme via FTP

 

It’s important that you delete (not replace or overwrite) the old theme folder. If you only overwrite the folder, it will cause issues in the theme, including fatal errors..

Step 1: Download the “installable theme” from ThemeForest

Step 2: Access your server via FTP or SFTP. Navigate to the wp-content > themes folder.

Step 3: Backup the theme folder by saving it to your computer. Once that’s completed, you can delete it from the server. Deleting the theme files won’t remove your content. Your content such as pages, options, images and posts will not be lost or erased by doing this. However, any customizations to the theme’s core files, such as PHP files, will be lost unless you’re using a child theme.

Step 4: Retrieve the theme files you’ve just downloaded. If you’ve downloaded the installable WordPress file, then you only need to extract it once to get to the ‘theme’ folder. If you’ve downloaded the Full Theme Package you must extract it once to access the secondary ‘theme.zip’ file, and then extract the secondary ‘theme.zip’ file to get to the ‘theme’ folder.

Step 5 – Don’t forget to update the required plugins ( Visual Composer …)

Sometimes files are deleted inside the Theme so make sure that your program is deleting all files and uploading the new ones when it overrides instead of simply “updating newer files”. It can cause issues if you have files on your server inside the theme that are no longer used in the theme itself.

 

After updating…

After you are done updating your theme please also perform the following step

Clear site cache : you read direcrion at below link

Clear site cache

Browser cache : The below link is guide how to clear your browser cache :

Clear browser cache

Was this article helpful?

Can't find what you want? Submit a ticket

Related Articles