简体   繁体   中英

Magento theme installation on localhost

I have downloaded a Magento 2 theme and I want to install that theme to my magento store , currently I am doing it on my local host. I am new in Magento and want to install the theme.when I extract the downloaded theme file it gave me 4 directories app,js,lib,skin and 2 files .htaccess and robots.txt

Tell me how I can add this theme to my store. Thank you.

You just need to place the files into your magento root directory. Just be careful so you don't overwrite anything that you shouldn't. After that the theme should be visible into your magento control panel. Go into Stores > Configuration > Design, and change the theme to the one you just uploaded.

For installing theme on magento 2 you need to implemeint your theme package to the current magento directory with all the files in designed folder please consider its doc for its file structure first.

Then open cmd using win + R > type cmd

navigate to your project directory

and run following commands

1- php bin/magento setup:upgrade

2- php bin/magento setup:static-content:deploy

3- php bin/magentocache:flush

4- open admin and select theme from admin>CMS>Theme- Configuration> Your store

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM