By default Plug in SEO applies a title and description template for your collection pages.
If the titles and descriptions being generated by default are not best for your shop you have the option to create a custom template using liquid code.
New to using liquid code? Read our guide here: Plug in SEO Liquid
Option 1: Edit Our Recommended Templates
To make small customizations to your page title or description you can copy the template that we recommend by default and make adjustments.
To edit your title or description template:
- Review the 'Default Title Template' and 'Default Description Template' below
- Copy and paste one into either the relevant collection template field in the Plug in SEO app
- Update the text and liquid code as desired
- Press 'Save and preview'
- Scroll down and view the new title or description in the 'Live Search Engine Preview'
Default Title Template:
Shop %% current_tags || join: ', ' || append_not_empty: ' ' %%%% collection.title || escape %% at %% shop.name %%
Default Description Template:
%% collection.all_tags || take: '3' || join: ', ' || prepend_not_empty: 'Shop ' || append_not_empty: ' and more ' %%%% collection.title || escape %% at %% shop.name %%: Cheesy t-shirts for designers. %% collection.description || strip_html || strip_newlines || escape || strip %% Stock photo tees of business cliches, exaggerated expressions and retro technology.
Example Search Result Output:
Option 2: Use or Modify a Different Example Templates
What your unique selling points are and how your shop is set up will influence your titles and descriptions. Do you want to emphasize your range? Use collection.products_count below. Are vendors most important? collection.all_vendors. Or perhaps you use types? collection.current_type may be handy.
Take a look at our most popular options below and then craft the perfect title and description templates for your shop.
New to using liquid code? Read our guide here: Plug in SEO Liquid
current_tags (for collections filtered by tags)
current_tags lets us access the tags the user has filtered the collection by. It can be none, one or many so we should handle all three scenarios.
Input
Buy %% current_tags || join: ', ' %% %% collection.title %%
Output
Currently filtered by many tags...
Buy blue, green, stripy men's t-shirts
One tag...
Buy blue men's t-shirts
Not filtered (no current_tags)...
Buy men's t-shirts
collection.title
Input
%% collection.title %%
Output
Men's t-shirts
collection.description
Input
%% collection.description %%
Output
A wide range of fun and formal t-shirts for men
collection.products_count
Input
Over %% collection.products_count %% different %% collection.title %%
Output
Over 210 different Men's t-shirts
collection.all_vendors
Input
Shop %% collection.title %% from %% collection.all_vendors || take: '3' || join: ', ' %% and more
Output
Shop designer handbags from Chloé, Givenchy, Saint Laurent and more
collection.all_tags
Input
Buy %% collection.all_tags || take: '3' || join: ', ' %% %% collection.title %%
Output
Buy blue, green, stripy men's t-shirts
collection.current_type
Input
Shop %% collection.current_type %%
Output
Shop formal shirts
collection.current_vendor
Input
Shop %% collection.current_vendor %% %% collection.title %%
Output
Shop Chloé designer handbags
Option 3: Create a Unique Custom Template
If none of the examples above suit the type of template you would like for your shop you can use any available liquid objects to create a unique template to your shop.
You can view all available liquid objects here:
- All of the collection object attributes
- current_page
- current_tags
- shop
Comments
0 comments
Please sign in to leave a comment.