Question:
I want to set meta tag for the sub category in the sub category page as per below format:
Title: {Sub Category Name} – Shop {Sub Category Name} Products Online
Description: Buy {Sub Category Name} products online at the best price. We offer a wide range of {Parent Category Name}
Is it possible?
Answer:
I am sorry that our module doesn’t support providing {Parent Category Name} variable. However, please refer our solution below if there aren’t too many parent categories on your site:
Please directly add Parent Category Name into the description:
Buy {Sub Category Name} products online at the best price. We offer a wide range of [Parent Category Name]
For example: if the [Parent Category Name] is “Candy”, then the template will be:
Buy {Sub Category Name} products online at the best price. We offer a wide range of Candy.
Then, all Sub Categories should be assigned this template.
For more information about product, please refer Meta Tags Template for Magento 2 page.
If you need any further assistance, please feel free to contact us.
Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html