Ad
Editing SEO Metadata In Virtocommerce
i'm trying to use SEO for Store and set page titles for store pages like customer profile, sign in, cart, .... but last SEO entry in store SEO's applies to all pages (except category, product), for example i have 3 SEO entry , addresses applies to all pages, even home!
Ad
Answer
It is possible to set SEO title and description for shopping cart, personal cabinet and similar pages by checking the Liquid-template name on the theme layout before using Liquid-variables page_title
and page_description
. Like 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 }}" />
Ad
source: stackoverflow.com
Related Questions
- → How do I call the value from another backed page form and use it on a component in OctoberCms
- → Inline JS callback syntax Vs Internal JS callback syntax
- → Prevent form action from being followed by robots
- → How to remove parameters from the root URL if it does I18n
- → SEO Canonical URL in Greek characters
- → Htaccess negation
- → Wrapping anchor elements with text
- → Adding schema.org to site
- → dynamic php title depends on page id and using of "if (isset"
- → Building sitemap for 2 wordpress install under 1 domain
- → Bigcommerce Repeating url
- → 301 Redirection from no-www to www in wordpress
- → Wrapper inside or outside HTML5 semantics main, which is best practice?
Ad