简体   繁体   English

在本地主机上安装Magento主题

[英]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. 我已经下载了Magento 2主题,并且想要将该主题安装到我的magento商店中,目前我正在本地主机上进行此操作。 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 我是Magento的新手,想要安装theme.when,当我提取下载的主题文件时,它给了我4个目录app,js,lib,skin和2个文件.htaccess和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. 您只需要将文件放入magento根目录即可。 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. 之后,该主题应该在您的magento控制面板中可见。 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. 要在magento 2上安装主题,您需要将所有包含设计文件夹中的所有文件的主题包实施到当前的magento目录中,请首先考虑其文档以了解其文件结构。

Then open cmd using win + R > type cmd 然后使用win + R打开cmd>输入cmd

navigate to your project directory 导航到您的项目目录

and run following commands 并运行以下命令

1- php bin/magento setup:upgrade 1- php bin/magento setup:upgrade

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

3- php bin/magentocache:flush 3- php bin/magentocache:flush

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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