在 PrestaShop 中更新 theme.yml [英] Updating theme.yml in PrestaShop

查看:47
本文介绍了在 PrestaShop 中更新 theme.yml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图在 PrestaShop 主题中修改 theme.yml 的布局.我注释掉以下内容:

So I'm trying to modify the layout of theme.yml in a PrestaShop theme. I comment out the following:

  hooks:
    modules_to_hook:
      displayFooter:
      #  - ps_linklist
      #  - ps_customeraccountlinks
        - ps_contactinfo

然后我保存并通过 FTP 传输文件.FTP 成功.

And then I save and FTP the file. The FTP succeeds.

但是,链接列表和 customeraccountlinks 挂钩仍显示在客户端浏览器的页脚中.

However, the linklist and customeraccountlinks hooks are still displayed in the footer on client browsers.

我已尝试在客户端浏览器上强制刷新,并清除后台的缓存.这些都不起作用.

I've tried to force refresh on the client browser, also to clear cache in back office. Neither of these work.

我如何传播这个更新的 theme.yml ?

How do I propagate this updated theme.yml ?

推荐答案

theme.yml 仅在第一次安装主题时有用,您对它所做的任何更改在主题安装后都不起作用.

The theme.yml is only useful when first installing a theme, any changes you make to it will not do anything after the theme has been installed.

但是,很容易在已安装模块"页面上删除不需要的模块(单击模块旁边的小箭头并选择卸载")或从displayFooter"钩子中解开模块在 Prestashop 1.7.x 中设计"子菜单中的位置"页面上

However it is easy to either remove the unwanted modules on the "installed modules" page (click the little arrow next to the module and select "uninstall") or unhook the module from the, in your case, "displayFooter" hook on the "Positions" page which is found in the submenu of "Design" in Prestashop 1.7.x

这篇关于在 PrestaShop 中更新 theme.yml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆