In this tutorial, we are presenting you the way to update Magento 2 theme.
I.Â ProperÂ preparationÂ for update:
Before updating magento 2 theme, we need to have a well preparation including 4 small steps below:
- We suggest duplicating your live store on a development store and trying to update Venustheme version on it in advance.
- Backup database of your site: Go to admin > System > Backup > Backup Database, then input file name and submit it.
- Â Backup your modified files of the theme and extensions: app/code/Ves/ and app/design/frontend/Venustheme
- Disable all cache related section that you have in your magento.
II. Detailed process for Theme File Updating:
After the preparation stage, now are you willing to update to last version of theme files?
Here is the best part:
In this tutorial, we will use the theme_files.zip to update the new version for the site.
Step 1:Â Download latest theme package on our site or on Themeforest.net. Then decompress the package on your PC.
Â Step 2:Â Decompress the file â€œTheme Files/magento 2.1.0/theme_files.zipâ€ â€“ in the file we stored theme files, themeâ€™s extensions files, sample theme media files.
Â Step 3:Â Upload the files in theme_files.zip which you just decompressed into the webroot folder in your site (it will override the app/ and pub/ folders in your site).
Â Step 4:Â Open SSH Terminal of your site, then run there commands:
php bin/magento setup:upgrade --keep-generated php bin/magento setup:static-content:deploy php bin/magento cache:clean
But there’s a catch:
Sometimes your site is broken, after run this command, itâ€™s because of you ran this command with the incorrect user. If your site was broken, itâ€™s very important to set the fileâ€™s permissions and ownership correctly, after run this command line. You can refer this command chown -R : .
chown -R apache:apache /var/www/html/magento2/venustheme chown -R www-data:www-data /home/domain/public_html
Table of Contents
Related blogs you may be interested in:
- Top 10+ Magento 2 Reward Points Extensions
- 10+ Best Magento 2 Store Locator Extension Free & Premium
- 14+ Best Magento 2 Social Login Extension Free & Premium
- Top 9 Magento 2 Reward Points Extension Free & Premium
- Top 10 Magento 2 Blog Extension Free & Premium
- 10+ Best Magento 2 FAQ Extension Free & Premium