【shopify】Also-Bought插件手机端样式修改

Also Bought 自带样式:
自带样式
Also Bought 调整后样式:
调整后样式
  • 然后打开shopify后台 -- 依次点击 Online Store -- Actions -- Edit Code -- 搜索并打开theme.scss.liquid,将目标代码复制粘贴在该文件最底部即可:

目标代码:

@include av-mq('phone') {
  ._Msite_Display{
    display:block !important;
  }
  ._Pc_Display{
    display:none !important;
  }
  .cbb-also-bought-container{
    margin-left:0 !important;
    margin-right:0 !important;
    padding: 45px 15px  45px 15px !important;
    border-top: 1px solid #ddd;
  }
  .cbb-also-bought-title{
    font-size: 20px !important;
    letter-spacing: 0.2em !important;
  }
  .cbb-also-bought-add-to-cart-button{
      padding:10px !important;
  }
  .cbb-also-bought-product{
    width:7.5% !important;
  }
  .cbb-also-bought-product:first-child{
    margin-left: calc(2% + 20px);
  }
  .cbb-also-bought-product-image{
    width:100% !important;
    background-size: cover !important;
  }
  .cbb-also-bought-product-name{
      font-size:13px !important;
  }
  .cbb-also-bought-product-price-container{
    margin:5px 0 !important;
  }
  .cbb-also-bought-slider::-webkit-scrollbar {
    display:none;
  }
  .cbb-also-bought-slider::-webkit-scrollbar:vertical {
      display:none;
  }
  .cbb-also-bought-slider::-webkit-scrollbar:horizontal {
      display:none;
  }
  .cbb-also-bought-slider::-webkit-scrollbar-thumb {
     display:none;
  }
  .cbb-also-bought-slider::-webkit-scrollbar-track {
      display:none;
  }
}

建议同时将该插件此处设置如下,会达到最好的展现效果:


image.png

操作中遇到困难请联系技术部同事。(我相信你自己可以的)
有任何意见建议请联系技术部同事。(可能不会采纳哦)
😊

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容