{"id":111493,"date":"2019-02-16T17:00:00","date_gmt":"2019-02-16T17:00:00","guid":{"rendered":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/"},"modified":"2026-04-08T08:11:19","modified_gmt":"2026-04-08T01:11:19","slug":"edit-string-variables-in-liquid","status":"publish","type":"post","link":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/","title":{"rendered":"How to edit string variables in Liquid"},"content":{"rendered":"<p>Considered as useful tool for Website designers, <a href=\"https:\/\/avada.io\/blog\/how-change-language-themes-shopify\">template language<\/a> can combine static content on multiple pages. Furthermore, with this amazing invention, it is possible for the developers to re-use the static data defining page\u2019s layout. Instead of being writing in HTML as static elements, the dynamic ones will be written in <strong>Liquid<\/strong>.<\/p>\n<p>Developed by Shopify as an open-source since 2006, <strong>Liquid<\/strong> which is an opern-source template language plays a role as the backbone of Shopify themes. With syntax, <strong>Liquid<\/strong> can interact with variables; moreover, it also has constructs inlcuding output and logic. With these efficiency of <strong>Liquid<\/strong>, it is now used by multiple hosted web applications such as Jekyll websites.<\/p>\n<p>Used on GitHub and many software projects, <strong>Liquid<\/strong> is en effective tool to load dynamic content of the website in any online stores. Its code including 3 main categories is objects, tags, and filters. All of them will be used in [template] files inside <strong>Liquid<\/strong>. Eventually, those files will create a To make a <a href=\"https:\/\/avada.io\/blog\/how-download-themes-shopify\">theme<\/a>.<\/p>\n<p>The variations of the <strong>Liquid<\/strong> is getting more and more because it is very easy for the users to add their own significant number of codes in both Shopify and Jekyll. Besides, there are 5 types of <strong>Liquid<\/strong> are String, Number, Boolean, Nil, Array. <strong>String<\/strong> is the texts which will be presented by wrapping a variable\u2019s value in single or double quotes.<\/p>\n<p>The Shopify store owners can use string filters to manipulate outputs and variables in Shopify. This article <strong>How to edit string variables in Liquid<\/strong> guides the Shopify store owners to modify their string variables such as replacing or uppercasing.<\/p>\n<h2 id=\"how-to-edit-string-variables-in-liquid-in-shopify\">How to edit string variables in Liquid in Shopify<\/h2>\n<ul>\n<li><a href=\"#step-1\">Step 1: Replace the string variables<\/a><\/li>\n<li><a href=\"#step-2\">Step 2: Upcase the string variables<\/a><\/li>\n<\/ul>\n<h3 id=\"step-1\">Step 1: Replace the string variables<\/h3>\n<p>By using case for Liquid filters, the admins can change the heading <strong>baked goods* to **baked bread<\/strong><br \/>\nFirstly, after the variable, admins can add a <code class=\"language-plaintext highlighter-rouge\">|<\/code> then pass it a filter to **replace** in this case.<\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n...\n&lt;h2&gt;{{ page.heading | replace: \"goods\", \"bread\" }}&lt;\/h2&gt;\n...\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/cdn4.avada.io\/media\/shopify\/4S9ci1Q.jpg\" alt=\"replace the string variables 1\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn4.avada.io\/media\/shopify\/xllKwWU.jpg\" alt=\"replace the string variables 1\" \/><\/p>\n<h3 id=\"step-2\">Step 2: Upcase the string variables<\/h3>\n<p>Besides, the users can chain filters like making the heading uppercase by <code class=\"language-plaintext highlighter-rouge\">| upcase<\/code><\/p>\n<div class=\"language-plaintext highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code>\n...\n&lt;h2&gt;{{ page.heading | replace: \"goods\", \"bread\" | upcase }}&lt;\/h2&gt;\n...\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/cdn4.avada.io\/media\/shopify\/SyyrjLi.jpg\" alt=\"upcase the string variables\" \/><\/p>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>Base on the latest version of Liquid, the storefront will have the optimal performances. We hope that admins can manage their output easily with the guide from this tutorial <strong>How to edit string variables in Liquid in Shopify<\/strong>. Furthermore, with the expansion to other applications, <strong>Jekyll<\/strong> also an effective tool for the Shopify store owners and they can discover more through another blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Considered as useful tool for Website designers, template language can combine static content on multiple pages. Furthermore, with this amazing invention, it is possible for the developers to re-use the static data defining page\u2019s layout. Instead of being writing in HTML as static elements, the dynamic ones will be written in Liquid. Developed by Shopify [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[356,383],"tags":[],"class_list":["post-111493","post","type-post","status-publish","format-standard","hentry","category-shopify","category-shopify-devdocs"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to edit string variables in Liquid in Shopify<\/title>\n<meta name=\"description\" content=\"How to Edit String Variables in Shopify Liquid \u2013 Learn how to modify and format string variables in Shopify Liquid for better store customization.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to edit string variables in Liquid in Shopify\" \/>\n<meta property=\"og:description\" content=\"How to Edit String Variables in Shopify Liquid \u2013 Learn how to modify and format string variables in Shopify Liquid for better store customization.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/\" \/>\n<meta property=\"og:site_name\" content=\"Avada Commerce\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/avada.io\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-16T17:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-08T01:11:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn4.avada.io\/media\/shopify\/4S9ci1Q.jpg\" \/>\n<meta name=\"author\" content=\"Sam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@avadaio\" \/>\n<meta name=\"twitter:site\" content=\"@avadaio\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to edit string variables in Liquid in Shopify","description":"How to Edit String Variables in Shopify Liquid \u2013 Learn how to modify and format string variables in Shopify Liquid for better store customization.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/","og_locale":"en_US","og_type":"article","og_title":"How to edit string variables in Liquid in Shopify","og_description":"How to Edit String Variables in Shopify Liquid \u2013 Learn how to modify and format string variables in Shopify Liquid for better store customization.","og_url":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/","og_site_name":"Avada Commerce","article_publisher":"https:\/\/www.facebook.com\/avada.io\/","article_published_time":"2019-02-16T17:00:00+00:00","article_modified_time":"2026-04-08T01:11:19+00:00","og_image":[{"url":"https:\/\/cdn4.avada.io\/media\/shopify\/4S9ci1Q.jpg","type":"","width":"","height":""}],"author":"Sam","twitter_card":"summary_large_image","twitter_creator":"@avadaio","twitter_site":"@avadaio","twitter_misc":{"Written by":"Sam","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/#article","isPartOf":{"@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/"},"author":{"name":"Sam","@id":"https:\/\/avada.io\/#\/schema\/person\/cc9c647e3ec94d00dc61ae2e653cafb7"},"headline":"How to edit string variables in Liquid","datePublished":"2019-02-16T17:00:00+00:00","dateModified":"2026-04-08T01:11:19+00:00","mainEntityOfPage":{"@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/"},"wordCount":412,"publisher":{"@id":"https:\/\/avada.io\/#organization"},"image":{"@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn4.avada.io\/media\/shopify\/4S9ci1Q.jpg","articleSection":["Shopify","Shopify Devdocs"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/","url":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/","name":"How to edit string variables in Liquid in Shopify","isPartOf":{"@id":"https:\/\/avada.io\/#website"},"primaryImageOfPage":{"@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/#primaryimage"},"image":{"@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn4.avada.io\/media\/shopify\/4S9ci1Q.jpg","datePublished":"2019-02-16T17:00:00+00:00","dateModified":"2026-04-08T01:11:19+00:00","description":"How to Edit String Variables in Shopify Liquid \u2013 Learn how to modify and format string variables in Shopify Liquid for better store customization.","breadcrumb":{"@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/#primaryimage","url":"https:\/\/cdn4.avada.io\/media\/shopify\/4S9ci1Q.jpg","contentUrl":"https:\/\/cdn4.avada.io\/media\/shopify\/4S9ci1Q.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/avada.io\/blog\/edit-string-variables-in-liquid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/avada.io\/"},{"@type":"ListItem","position":2,"name":"Shopify","item":"https:\/\/avada.io\/category\/shopify"},{"@type":"ListItem","position":3,"name":"Shopify Devdocs","item":"https:\/\/avada.io\/category\/shopify-devdocs\/"},{"@type":"ListItem","position":4,"name":"How to edit string variables in Liquid"}]},{"@type":"WebSite","@id":"https:\/\/avada.io\/#website","url":"https:\/\/avada.io\/","name":"Avada Commerce","description":"Blog","publisher":{"@id":"https:\/\/avada.io\/#organization"},"alternateName":"Avada Commerce","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/avada.io\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/avada.io\/#organization","name":"Avada Commerce","alternateName":"Avada Commerce","url":"https:\/\/avada.io\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/avada.io\/#\/schema\/logo\/image\/","url":"https:\/\/avada.io\/wp-content\/uploads\/2023\/06\/Avada-logo.jpeg","contentUrl":"https:\/\/avada.io\/wp-content\/uploads\/2023\/06\/Avada-logo.jpeg","width":1200,"height":1200,"caption":"Avada Commerce"},"image":{"@id":"https:\/\/avada.io\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/avada.io\/","https:\/\/x.com\/avadaio","https:\/\/www.youtube.com\/@avadaio","https:\/\/www.linkedin.com\/company\/avadacommerce"]},{"@type":"Person","@id":"https:\/\/avada.io\/#\/schema\/person\/cc9c647e3ec94d00dc61ae2e653cafb7","name":"Sam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fdce01bbdb8b8eaa162f8ed372062707058abcd85e8b233af7cb4e01191c75f4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fdce01bbdb8b8eaa162f8ed372062707058abcd85e8b233af7cb4e01191c75f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fdce01bbdb8b8eaa162f8ed372062707058abcd85e8b233af7cb4e01191c75f4?s=96&d=mm&r=g","caption":"Sam"},"description":"Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Vietnam. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.","sameAs":["https:\/\/wordpress-466542-3512282.cloudwaysapps.com","https:\/\/vn.linkedin.com\/in\/samng80"],"url":"https:\/\/avada.io\/authors\/sam\/"}]}},"meta_title":"How to edit string variables in Liquid in Shopify","meta_description":"How to Edit String Variables in Shopify Liquid \u2013 Learn how to modify and format string variables in Shopify Liquid for better store customization.","meta_keywords":"","feature_image_custom":"","updated_at_migrate":"2024-09-19T20:50:02+07:00","_links":{"self":[{"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/posts\/111493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/comments?post=111493"}],"version-history":[{"count":2,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/posts\/111493\/revisions"}],"predecessor-version":[{"id":158771,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/posts\/111493\/revisions\/158771"}],"wp:attachment":[{"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/media?parent=111493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/categories?post=111493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avada.io\/wp-json\/wp\/v2\/tags?post=111493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}