Category "liquid"

LIQUID: How to hide an accordion if there is no content for it in the LIQUID file?

Code below does create accordion in Shopify product pages. I'm looking for a way to hide accordion if it has no content to display. Each accordion is an unique

Browser Push Notifications - How To Disable On Client Browser from a Shopify Liquid?

is it possible to execute code on the client's browser to disable push notifications on the clients browser? I am looking for example code to do just that- See

Understanding liquid template in microsoft FHIR-Converter

I am trying to understand how liquid template is being used in the Microsoft FHIR-Converter: https://github.com/microsoft/FHIR-Converter/tree/9239c4183fafcc67fe

Whitespaces handler in Liquid not working

I cannot figure out how to remove whitespaces from the start and end of my strings. My response body is: { "value": [ { "nomeUnidadeOpe

How to generate correct Fragment identifier in Jekyll/Kramdown?

I'am using Jekyll with the Minimal Mistakes template and facing a problem with the fragment header generation. Here is an example.. If you put a header into you

Shopify Metafiled using img src to display pic

Is there any way to squeeze <img src="//cdn.shopify...> url in the following code or any other code: {{ product.metafields.my_fields.file | img_tag }} T

How to add background color to section in shopify liquid

I am trying to add a background color to my shopify slideshow section but it doesn’t work. I have tried to add a new div: <div style="background-color:

Section not showing Youtube URL

I am very new to Liquid and I am trying to create an option where the user is able to enter a YouTube link and the video is not appearing when entering the link

How to add custom css to section in shopify

I am trying to add a custom css to my shopify section. I have created a css file in asset folder called test2.css: .body { background-color: lightgrey; colo

Date comparison Logic / in Liquid Filter

I'm trying to add 30 days to a pre-order date and if today's date is later, display a text string and if not display another text string. Any ideas where I'm go

Convert accent characters to normal characters in Liquid

For instance name = Florian Müllner, want name to be Florian MUllner How to covert name with accented characters in Liquid? Read the replace doc, but was n

Add custom multi-image section in Shopify

I'm trying to add a custom section in Shopify to allow the user to upload 2 promotional images. I'm a novice but I managed to create a custom section for 1 imag

Azure Logic App - order CSV by specified column

I have a Logic App in Azure, which has a 'Create CSV table' step. The input to the 'Create CSV table' step comes from a preceding 'Liquid Transform JSON' step.

Liquid::SyntaxError with Plotly in Markdown files using Jekyll

Trying to convert an .ipynb notebook to Markdown that contains Plotly charts for use in a Jekyll site (hosted on GitHub Pages). I'm running into this error: Liq

How to check for the existence of an element in a Liquid array (Shopify) without using join

I want to check for array values in an array created from a "split". Is there a way to do it without doing the following: {%- assign blog_tags_string = blogs.n

Custom variant input on Add to cart button

I have a product that has 3 variant colors. I'm trying to add a custom add to cart button that's linked to a variant selector Here's the code of my Add to cart

Shopify metafield newline_to_br adds line break on anchor tag

I've added a multi-line metafield to my collections so that I can insert a long description into my template. The code works well, but if there's an anchor tag

Date comparison Logic / in Liquid Template Filter

I'm attempting to create a "Pre-Order" Like mechanic where certain elements of my Shopify Liquid Template only show if the current date is more or less than the

How can I use a Shopify app proxy within a product page? [closed]

Essentially we want on our Shopify product pages to show a button to a logged-in customer. That button would use our app to then call an exte

Loop to build table using Liquid

I have seen in the documentation of Liquid which is exactly what I need but using it to build HTML emails so I need to add inline styles on parts of the HTML li