简体   繁体   English

如何在magento 2中安装下载的免费主题?

[英]How to install a downloaded free theme in magento 2?

I have just installed magento 2 in windows 10 , in xampp 127.0.0.1:8080 domain and by default it has a luma theme on it , i have downloaded a new theme called purity in .zip formate and since i am new to magento i have no idea how to install this theme? 我刚刚在xampp 127.0.0.1:8080域的Windows 10中安装了magento 2,默认情况下它具有luma主题,我在.zip formate中下载了一个名为pure的新主题,由于我是magento的新手,不知道如何安装这个主题? anyone please help me if you can, thank you 任何人都可以帮我,谢谢

  1. Upload and decompress the theme file into webroot folder in your site 将主题文件上传并解压缩到站点中的webroot文件夹中
  2. Run the command script via SSH or terminal app of your site: php -f bin/magento setup:upgrade (be sure that you are at magento home folder) 通过SSH或您站点的终端应用程序运行命令脚本:php -f bin / magento setup:upgrade(确保您位于magento主文件夹中)
  3. If theme show in list themes. 如果主题显示在列表主题中。 Go to Stores > Configuration > Design > choose design "Your theme". 转到商店>配置>设计>选择设计“您的主题”。 Save the change. 保存更改。 The step will apply the theme for frontend of your store. 该步骤将把主题应用于商店的前端。

You can upload the extracted theme in your web root folder. 您可以将提取的主题上载到Web根文件夹中。 Go to your site by running command code and run the following commands. 通过运行命令代码转到您的站点,然后运行以下命令。

php bin/magento setup:upgrade –keep-generated
php bin/magento setup:static-content:deploy

Now you can setup the new theme. 现在您可以设置新主题。

  • Go to Admin Panel, click Stores. 转到管理面板,单击商店。 In the “Settings” section, select 在“设置”部分中,选择
    “Configuration”. “组态”。
  • Select “Design” under “General” on the left panel. 在左侧面板的“常规”下选择“设计”。

  • Open the Theme section 打开主题部分

  • In the Design Theme field, select the new Theme as you want. 在“设计主题”字段中,根据需要选择新主题。

  • Click Save Config. 单击保存配置。

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

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