SEO - Dynamic Descriptions - Usage
This document provides instructions for using the SEO Dynamic Descriptions module.
Overview
This module uses Twig syntax in category description, meta description, meta title, meta keywords and H1 heading. You can use filters
to get currently active filter values as well as category
to get currently displayed category values.
Sample syntax
Configuring categories
In order to enable filters to be used (after enabling the module itself), head to:
Catalog
--> Categories
Then select desired category and expand Search Engine Optimization
tab.
Twig syntax works for SEO H1
, Meta Title
, Meta Keywords
, Meta Description
, and Descirption
fields.
Default replacing flow
The value is replaced only if the original value is empty. The order in the tables follows the order in which the value is replaced. The value is replaced with the first non-empty available value.
Product
Original Attribute | Replace to |
---|---|
meta_description |
short_description , description , name |
meta_title |
name |
Category
Original Attribute | Replace to |
---|---|
description |
dynamic_description |
meta_description |
short_description , description |
meta_title |
seo_header , name |
Examples
If a placeholder like {{ filters.material }}
is used without a conditional check (if
statement), and no value is provided, the output will include an incomplete sentence, e.g. Made from .
instead of a properly structured one. To avoid this, use an if
statement to display the sentence only when the attribute is selected.
Size & Color Fit Description
{{ category.name }} fits everyone in size {{ filters.size }} in this {{ filters.color }} awesome! Made from {{ filters.material }}. {% if filters.color == "Orange" %} Get ready to stand out with this vibrant shade! {% endif %}
Jeans fits everyone in size 32 in this Blue awesome! Made from Denim.
Style & Model-Based Description
Discover the latest {{ category.name }} in {{ filters.style }} style, featuring the trendy {{ filters.model }} model. Perfect for every occasion! {% if filters.style == "Casual" %} Stay relaxed and comfortable all day long. {% endif %}
Discover the latest Sneakers in Casual style, featuring the trendy AirMax model. Perfect for every occasion!
Material & Color Uniqueness
Our {{ category.name }} crafted from {{ filters.material }} in a stunning {{ filters.color }} shade is a must-have this season. {% if filters.material == "Leather" %} Luxurious and durable – an elegant choice for any wardrobe. {% endif %}
Our Handbags crafted from Leather in a stunning Black shade is a must-have this season. Luxurious and durable – an elegant choice for any wardrobe.
Promotional Offer for Model & Color
Exclusive offer on the {{ filters.model }} edition of {{ category.name }} in {{ filters.color }}! Limited stock available – grab yours today! {% if filters.color == "Red" %} Feel bold and confident in this fiery shade. {% endif %}
Exclusive offer on the Nike Air Jordan edition of Sneakers in Red! Limited stock available – grab yours today! Feel bold and confident in this fiery shade.
Seasonal Collection Based on Style & Color
Welcome the new season with {{ category.name }} in {{ filters.color }}. The perfect {{ filters.style }} addition to your wardrobe! {% if filters.style == "Elegant" %} Elevate your fashion game with timeless sophistication. {% endif %}
Welcome the new season with Dresses in Burgundy. The perfect Elegant addition to your wardrobe! Elevate your fashion game with timeless sophistication.
Gender-Specific Personalization
Find your perfect {{ category.name }}! Designed for {{ filters.gender }} and available in the latest {{ filters.model }} model. {% if filters.gender == "Women" %} Specially tailored for a sleek and stylish fit. {% endif %}
Find your perfect Running Shoes! Designed for Women and available in the latest Pegasus model. Specially tailored for a sleek and stylish fit.
Exclusive Limited Edition Model
Introducing the exclusive {{ filters.model }} edition of {{ category.name }} in {{ filters.color }}. Only a few pieces left! {% if filters.model == "Limited" %} A collector’s dream – don’t miss out! {% endif %}
Introducing the exclusive Supreme x Nike edition of Sneakers in White. Only a few pieces left! A collector’s dream – don’t miss out!
Comfort & Fit Based on Material & Size
Experience ultimate comfort with {{ category.name }} made from {{ filters.material }}. Available now in size {{ filters.size }} for the perfect fit. {% if filters.material == "Cotton" %} Soft, breathable, and perfect for everyday wear. {% endif %}
Experience ultimate comfort with T-Shirts made from Cotton. Available now in size M for the perfect fit. Soft, breathable, and perfect for everyday wear.
Functionality Highlight for Category & Attributes
{{ category.name }} in {{ filters.color }} and made from durable {{ filters.material }} – built for performance and style. {% if category.name == "Backpacks" %} Spacious, lightweight, and ideal for daily use. {% endif %}
Backpacks in Black and made from durable Nylon – built for performance and style. Spacious, lightweight, and ideal for daily use.
Premium Edition for Luxury Buyers
Upgrade your style with the premium {{ filters.model }} edition of {{ category.name }}. Crafted from {{ filters.material }} and available in {{ filters.color }}. {% if filters.model == "Luxury" %} Designed for those who appreciate elegance and superior craftsmanship. {% endif %}
Upgrade your style with the premium Rolex Submariner edition of Watches. Crafted from Gold and available in Black. Designed for those who appreciate elegance and superior craftsmanship.