Modifying templates
Our SEO metadata and alt text templates are powered by LiquidJS, a widely used templating language in e-commerce platforms, including Shopify. Its flexible yet powerful syntax enables merchants to define dynamic content easily, without the need for advanced coding skills.
Add dynamic content such as product titles, collection titles and use conditional logic to display SEO metadata and alt text that’s consistent across your entire site.
Using LiquidJS
Liquid filters allow merchants to manipulate and modify text, numbers, and other data, while Liquid tags provide control flow, iteration, and other logic to create custom templates. Using both liquid tags and filters can create effective templates for improving SEO metadata and alt text.
Liquid Filters
When it comes to modifying SEO metadata and alt text templates, the following Liquid filters may be particularly useful:
upcase
: Formats text in UPPERCASE. Learn moredowncase
: Formats text in lower case. Learn morecapitalize
: Capitalises the first character of a string. Learn moreappend:
Joins two strings together and returns the combined result. Learn moreprepend
: Adds the specified string to the beginning of another string. Learn morejoin
: Joins the elements of an array into a string with the specified separator character. Learn more
Learn more about Liquid Filters
Liquid Tags
if
is a for adding conditional logic. It can display text only if a certain condition is true. For example, you can useif
to display alt text if a product image is based on a specific product type.unless
is the opposite ofif
. For example, it can display text only if a certain condition is not met. Learn morefor
for iterating over collections. For example, you can use it to dynamically generate meta descriptions based on product attributes. Learn more
Configuring Templates
Image Alt Text
Alt text is like a helpful friend whispering in the ear of search engines. It describes your image in a concise way that makes it accessible and SEO-friendly.
For a dress in your catalogue, here's a fun way to draft your alt text:
Preview
LiquidJS Template
For a cool jacket, it could look something like this:
Preview
LiquidJS Template
SEO Title
The SEO title is the shining beacon that tells search engines and users what your page is all about. It’s like your product’s catchy jingle that gets stuck in users' heads.
For a dress, you could sing it like this:
Preview
LiquidJS Template
And for a jacket, it might sound something like this:
Preview
LiquidJS Template
SEO Description
SEO descriptions are your chance to reel in searchers. They're the exciting trailer for the blockbuster that is your product page.
For a gorgeous dress, your SEO description could sound like this:
Preview
LiquidJS Template
And for a stylish jacket:
Preview
LiquidJS Template
Remember to have fun with it! SEO is not just about keywords, it’s about connecting with your audience and making them click that link. Go forth and conquer the SEO world with these tips. Happy optimising!
Create unique templates for different categories
You can use conditional logic with an if
statement to check the category and then print a corresponding template. This means that when you analyse a product that belongs to a specific category, you will see results that reference the template tailored specifically to that category. Unique templates can help improve the relevancy of the metadata.
By using the category
attribute and incorporating it within your template logic, you can create custom templates that are unique to each category.
Here's an example of a default template and 3 unique SEO meta description templates combined:
Preview
LiquidJS Template
In the example, the second tab, the default template will apply for products that are not in the Dress
or Pants
category.
Use autocomplete for creating Templates
Say goodbye to the hassles of manually entering variables, which can often lead to errors. With our new autocomplete feature, all available variables, including product title and attribute options, are just a click away. By simply tapping the '@' symbol, you can access a comprehensive list of variables, eliminating the potential for errors and expediting the template setup process. Enjoy a seamless experience with the power of autocomplete at your fingertips.
Last updated