Simple Breadcrumb with Shopify Liquid
Hello! Sometimes we are facing issue while creating breadcrumb on Shopify. But it is so easy. Anyone can do this. Just copy the below code and that’s all. CSS code: Liquid code: Output:
Beginner's Guide for Shopify
Hello! Sometimes we are facing issue while creating breadcrumb on Shopify. But it is so easy. Anyone can do this. Just copy the below code and that’s all. CSS code: Liquid code: Output:
Go to the Liquid file where you want to display the page title and copy and paste the code below. It’s a global variable provided by Shopify to dynamically display the title of the current page. {{ page_title }} This will output the title of the current page.
To get the URL of an image in the assets folder of Shopify using Liquid, you can use the asset_url filter. Here’s how you can do it: First of all, if the image is not already uploaded, upload it to the assets folder. Then copy and paste the code below where you want to display…
If you want to display unique content, banners (like the above image), ads, or anything after a set number of products, you can use the code below for assistance. {%- assign product_counter = 0 -%} {%- for result in collection.products -%} {% if result.object_type == ‘product’ %} {% assign mod_val = product_counter | modulo: 8…