产品详情页添加广告图片

2019-11-29  本文已影响0人  iqing2012

在product-template.liquid搜settings.show_smart_checkout,然后把下面的代码加到如图所示位置

<a href="此处替换为跳转链接"> 
    <img class="chicv-product-ads-image" src="此处替换为图片链接">
</a>
<style type="text/css">
    .chicv-product-ads-image{
        margin-top: 10px;{% comment %}与图片上面的间隔大小{% endcomment %}
        max-width: 92%;{% comment %}如果要铺满,则改成100%{% endcomment %}
        border-radius: 10px;{% comment %}如果不需要圆角则把此行删掉{% endcomment %}
    }
</style>

image.png
上一篇 下一篇

猜你喜欢

热点阅读