Prestashop 1.7.1 - 顶部横幅应使用哪个挂钩? [英] Prestashop 1.7.1 - Top banner which hook shall be used?
本文介绍了Prestashop 1.7.1 - 顶部横幅应使用哪个挂钩?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据这个问题,我创建了一个新横幅.现在我想插入一个钩子,但我想知道应该使用哪个钩子将它显示在每个页面的顶部(作为促销横幅).
谢谢
解决方案
假设您使用的是经典主题,您可以使用 displayBanner
钩子.如果您查看 header.tpl
,您可以找到以下块:
{block name='header_banner'}<div class="header-banner">{hook h='displayBanner'}
{/堵塞}
应该显示在每个页面的顶部
Following this question I have created a new banner. Now I want to insert a hook, but I am wondering which hook shall be used to display it on top of every page (as a promotional banner).
Thanks
解决方案
Assuming you're using the classic theme, you can use the displayBanner
hook. If you look at header.tpl
you can find the following block:
{block name='header_banner'}
<div class="header-banner">
{hook h='displayBanner'}
</div>
{/block}
which should be displayed on top of every page
这篇关于Prestashop 1.7.1 - 顶部横幅应使用哪个挂钩?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文