On a site I am working on we have a title tag that has an example like this :
<title>page name | location name</title> that is auto generated in the template. <title>@pageTitle | @Model.Content.GetPropertyValue("siteName", true)</title>
Problem is SEO checker is returning empty title tag in the snippet preview even though the title tag is set and I have picked Title from the Default title properties picker in the SEO checker settings.
How could I get the snippet preview to display the value that is in the title tag?
In the title template you need to use the placeholder 'seotitle':
eg
[#@seotitle] | [$SiteName]
seotitle will then be replaced by the value of seoTitle on your doc type, or if that is not present, it will be replaced by the values you have in the 'default title properties' list.
If you don't use seotitle then your title template is not used in the preview snippet
[SEO Checker] Not using values from the title tag
On a site I am working on we have a title tag that has an example like this :
<title>page name | location name</title>
that is auto generated in the template.<title>@pageTitle | @Model.Content.GetPropertyValue("siteName", true)</title>
Problem is SEO checker is returning empty title tag in the snippet preview even though the title tag is set and I have picked Title from the Default title properties picker in the SEO checker settings.
How could I get the snippet preview to display the value that is in the title tag?
Hi Matt
In the title template you need to use the placeholder 'seotitle':
eg
[#@seotitle] | [$SiteName]
seotitle will then be replaced by the value of seoTitle on your doc type, or if that is not present, it will be replaced by the values you have in the 'default title properties' list.
If you don't use seotitle then your title template is not used in the preview snippet
regards
Marc
is working on a reply...