cancel
Showing results for 
Search instead for 
Did you mean: 

Installing a theme

SOLVED

Installing a theme

Hi,

 

I'm trying to install a theme for magento 2.0 via c-panel. I have used siteground for hosting. 

 

After browsing through some youtube tutorials I have did the following:

 

1. Created a folder on server at public_html using c-panel.

2. uploaded zip file.

3. Unzipped the file.

4. Created sql database using MySQL database from c-panel.

5. Created a new user for database.

6. Added the user to that database.

7. Open PHP my admin, import the SQL database to the new database folder. 

8. Extracted the files.

 

The video ends here. Link - https://www.youtube.com/watch?v=O_zRMJaiJ0k

 

Now, my questions are:

1. How do I link my new SQL database and the new theme? Are they already linked?

2. How can I access/activate/modify my new theme, through Magento back office?

 

Please let me know if I have done something wrong. I'm not a programmer and have no knowledge of programming. This is my first attempt at building my website. 

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Installing a theme

Yes you are doing correct,

Just merge app and pub folder into public_html folder using cpanel.

Run all above command.
After completing above steps,
Go to admin panel,
Click on Content -> Design -> Configuration

Edit your store theme and set new theme from applied theme dropdown options.
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

9 REPLIES 9

Re: Installing a theme

First You need to run the command through SSH from the root of your Magento instance,

Like your Magento under the public_html/magento2,

You need to run the command from Magento 2 folder,

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

Now You need to assigned your theme to storefront using Backend,

Login with backend,

 

Theme assigned:
Now You need to assigned your theme to storefront using Backend,

Login with backend,
Go To Content -> Design -> Configuration
Click on Edit link from Your Store,
Now set Theme from Applied Theme dropdown section and Click On Save Configuration.

 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Installing a theme

@Rakesh Jesadiya

 

Hi,

 

Thanks for the response. The name of the folder I have created was ThemeDemo and from under this folder I tried -- 

php bin/magento setup:upgrade

but ran into an error :

babybuff@sgp60 [~/public_html]# cd ThemeDemo

babybuff@sgp60 [~/public_html/ThemeDemo]# php bin/magento setup:upgrade

Could not open input file: bin/magento

babybuff@sgp60 [~/public_html/ThemeDemo]# ls

./   applib/    package.xml  ves_bakerop_theme_files.zip

..js/   mediaskin/

babybuff@sgp60 [~/public_html/ThemeDemo]#

 

 Also, please let me know if there is a way I can make out if the downloaded theme is compatible with magento 2 or not. (may be by looking at its folder structure)?

Please help.

Re: Installing a theme

Are you working on Magento 2 or magento 1?

Because you have run ls command and show js, skin, media folder which are not root folder in magento 2.

 

Also Your magento1 theme is not compatible with magento 2 so if you have download magento 1 theme into magento 2 and try to activate theme its not works for you.

 

Check below links for Magento 2 Create Theme,

https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-create.html

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Installing a theme

@Rakesh Jesadiya

 

Yes I'm using magento 2 and realised that this could be a magento 1 theme and therefore send the file structure.

 

Now, I have downloaded another free magento2 theme. But not sure how to install it.

 

The document link which you have shared is for creating your own theme. I'm not a programmer and I'm looking for a easy tutorial on installing 1 of the free themes (preferably using c panel and some basic SSH commands) and link it through the backend.

 

Is there a youtube video which explains that?

 

Thanks.

Re: Installing a theme

Hi @himanshu_bhatnagar

 

Yes there are so many youtube video - tutorial available to know how to install theme on Magento 2  !

 

Below i am sharing few of theme links for your reference.

 

https://www.youtube.com/watch?v=c8xhcl2qKHU

 

https://www.youtube.com/watch?v=E7usDngbK_M

 

https://www.youtube.com/watch?v=u4n8zT-iB3E

 

Hope it helps !

 

if issue solved,Click Kudos & Accept as Solution

Re: Installing a theme

Hi, I want to know how to install a Theme on Magento from GoDaddy,
or any hosting for that matter. 



I can install the App. I have downloaded a free theme. But I'm unsure how to continue. 

Theme install instructions says: 
(1) Unzip Quickstart zip into magento directory.

(2) make an database (database_name) and import database.sql. 
(3) To Quick Install : open URL www.hosting.com/magento/vss_site/ 

I get errors on third step. 

Any help?

Re: Installing a theme

You can refer below links,

https://m.youtube.com/watch?v=c8xhcl2qKHU

https://m.youtube.com/watch?v=4HGSyosaFC4

Just extract your theme package into app/design folder of magento instance.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Installing a theme

@Rakesh Jesadiya

 

Could you please tell me how to merge folder using Cpanel? 

 

As a part of 1st step to install my new downloaded theme, I'm suppose to copy app and pub folder to public_html folder. Since there are 2 such folders already present, i'm assuming that we have to merge these 2 folders.

 

Now using cpanel, how can we do this?

 

And just to confirm the second step, I would be running the below command from public_html folder:

 

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

 

Is that right?

Re: Installing a theme

Yes you are doing correct,

Just merge app and pub folder into public_html folder using cpanel.

Run all above command.
After completing above steps,
Go to admin panel,
Click on Content -> Design -> Configuration

Edit your store theme and set new theme from applied theme dropdown options.
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial