Posts

Showing posts from August, 2018

add related posts on single product page

first add code in settings section of schema:-  {       "type": "checkbox",       "id": "display_related_products",       "label": "Show related products ([?](http:\/\/support.outofthesandbox.com\/customer\/portal\/articles\/942378-related-products))"     },     {       "type": "select",       "id": "products_per_row",       "label": "Related products per row",       "options": [         {           "value": "2",           "label": "2"         },         {           "value": "3",           "label": ...

add multiple logos with links || multiple images with links

<div class="logo-bar-section container">   <div class="sixteen columns">     <div class="section clearfix">     {% if section.settings.title != blank %}         <h2 class="title center">           {{ section.settings.title | escape }}         </h2>         <div class="feature_divider"></div>     {% endif %}     {% if section.blocks.size > 0 %}       <div class="logo-bar">         {% for block in section.blocks %}           <div class="logo-bar__item" {{ block.shopify_attributes }}>             {% if block.settings.link != blank %}      ...

include css and js in shopify

{{ 'custom.css' | asset_url | stylesheet_tag }} {{ 'cutom.js'  | asset_url | script_tag     }}

add image title and url in section

    <div class="container">        <div class="category-section">                <div class="row">                   <div class="col-sm-4 col-md-4">                      <a href="{{ section.settings.link1 }}" class="category-block">                         <img src="{{ section.settings.logo | img_url: '2048x' }}">                         <div class="category-name">{{ section.settings.text-box1 }}</div>   ...

get collections with product count in collection with images and collection name

{% assign collections_per_row = section.settings.frontpage_collections_per_row %} <div class="container">   <div class="featured-collection">   {% if section.blocks.size > 0 %}     {% if section.settings.title != blank %}         <h1><span>{{ section.settings.title | escape }}</span></h1>     {% endif %}         <div class="row">           {% for block in section.blocks %}             {% assign feature_collection = block.settings.feature_collection %}             {% assign collection = collections[feature_collection] %}             {% if block.settings.image %}            ...