douchuoliu4422
douchuoliu4422
2015-03-10 08:31

prestashop更改页面图标不起作用

已采纳

I am using Prestashop for the first time. I try to change icons in the default theme but the change doesn't reflect on the UI

E.g: in block contact info, I have originally

<li>
          <i class="icon-phone"></i>{l s='Call us now:' mod='blockcontactinfos'}
                    <span>{$blockcontactinfos_phone|escape:'html':'UTF-8'}</span>
                </li>

I want to remove <i class="icon-phone"></i> and add my own icon <img src="\img\icons\call.png" />

But the UI still look the same after I changed the code to

<li>
                    <!--<i class="icon-phone"></i>-->
                    <img src="\img\icons\call.png" />{l s='Call us now:' mod='blockcontactinfos'}
                    <span>{$blockcontactinfos_phone|escape:'html':'UTF-8'}</span>
                </li>

I use chrome inspector and see that the source code doesn't change at all. How can I add my own icons in prestashop?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • douwen5546 douwen5546 6年前

    It's because Prestashop uses 1) Module overrides and 2) Template cache system. You should disable cache memory in BO in Settings -> Performance and then clean the cache with the button on the top right. Next You need to edit:

    not: root/modules/blockcontactinfos/blockcontactinfos.tpl

    but root/themes/yourthemename/modules/blockcontactinfos/blockcontactinfos.tpl file.

    This should help fix Your problems :)

    点赞 评论 复制链接分享