So now you’ve browsed and successfully downloaded the Magento 2 theme for your Store.
Congratulation! Your website is about to have a whole new Interface, which may excite your visitors and probably bring you more leads and sales this month.
However, you have two more steps to successfully have your themes work for you, which is to upload Magento 2 themes and to install them.
Upload Magento 2 Themes to your Website Directory
This may sound easy at first, but without coding knowledge and Magento Module Installation experience, this work could become hours of finding the bug, fixing the errors, giving the wrong command, and even mistakenly delete your website’s precious customer data.
This article presents to you 4 main ways to upload your just-downloaded-theme to your server, even without the help of a developer.
To ensure you would not lose your previous work, we encourage you to set up a new branch to come back when you want.
1. Upload Magento 2 theme via the unzipped files to FTP
This is definitely the slowest method, yet we recommend you to have a look at it just in case other methods go wrong.
- Log in to your FTP Account using FileZilla
- Go to <theme> folder in your computer, it’s where you see something like this.
- Select all files, and drag them to Server Site Directory in Filezilla.
- Wait (may take up to 30 minutes, depends on which theme you have) until all files are transferred successfully.
2. Upload Magento 2 theme via FTP
This method is pretty the same, except it’s quicker and easier to use.
- Log in to your FTP Account using FileZilla.
- Select your zipped theme file.
- Upload the file.
- Unzip Theme file using SSH:
unzip [theme name].zip
3. Upload Magento 2 theme via cPanel
The second-fastest method to upload any Magento themes is via cPanel. To try it out, have a look at these steps below.
- Log in to your cPanel account.
- Find File Manager.
- Select the site directory, usually, it is located in:
/var/www/html/[your website name]/
- Click Upload
- Choose your zipped Theme file.
- Extract the uploaded file.
4. Upload Magento themes via Composer
This is indeed the fastest method, yet it required you to have a little more knowledge in coding.
- Get the theme’s Composer name.
you can find the name and version of any module (whether or not you purchased it on Marketplace) in the module’s composer.json file. Open App > Code > [Theme name] > Setup > composer.json in a text editor and find the values of “name” and “version”.
- Change to your Magento root directory and enter the command:
composer require [vendor]/[theme name]:[version]
composer require BSS/THINNK-THEME:1.0.0
- Wait for dependencies to update.
After uploaded and unzipped the theme successfully, you have to install the theme by upgrade setup, import demo data, deploy, and flush cache to have your theme installed just the way you see the theme demo. The procedure results from Magento’s natural system.
Install After Uploading Magento 2 Theme
- Upgrade Setup: Input
php bin/magento setup:upgrade
In case you use Magento version 2.2.x and above, input:
php bin/magento setup:static-content:deploy –f
In case you use Magento version 2.1.x and lower, input:
php bin/magento setup:static-content:deploy
- Go to your Magento Admin > Content > Design > Configuration > Edit Main Website Store.
- Then Select your theme > Save Configuration.
- Flush Cache.
- Import Demo Data.
- Flush Cache.
There you have your theme fully uploaded with full CMS, Blocks to the server.
If you have any more questions regarding uploading Magento 2 theme, leave a short comment below, and we will respond shortly.
You can also browse the theme we have spent all our time and pride to develop below.