frontend - editing SEO metadata in virtocommerce -
i'm trying use seo store , set page titles store pages customer profile, sign in, cart, .... last seo entry in store seo's applies pages (except category, product), example have 3 seo entry , addresses applies pages, home!
it possible set seo title , description shopping cart, personal cabinet , similar pages checking liquid-template name on theme layout before using liquid-variables page_title
, page_description
. so:
... {% if template == 'cart' %} {% assign page_title = 'cart.general.title' | t %} {% assign page_description = 'cart.general.title' | t | append: ' - ' | append: shop.name %} {% endif %} ... <title>... {{ page_title }} ...</title> <meta name="description" content="{{ page_description | escape }}" />
Comments
Post a Comment