seo
seo copied to clipboard
Incorrect title format
I'm not sure if I'm doing anything wrong, but when when i use dafault title format in plugin settings, which is this:
{title} - {{sitename}}
My title for entries is generated like this:
site name - site name
And when i switch lock icon on `{title} - so its locked, title changes to this:
- site name
Shouldn't default title config use current entry title?
Plugin also ignores completly what i set in entry-specific seo field as far as title goes.
any news on this?
I have the same issue. It seems to happen on all installations now.
can confirm
Also having this issue.
Anyone figure this out?
Same issue here.
This is definitely a bug right? I have this exact problem and am still not sure if I'm doing something wrong or not.
I have found perhaps the issue I was having is not the same as this. I understood that I only needed to add the SEO field if I wanted to be able to set custom attributes per page. I did not need to so I just installed the plugin and added the "{% hook "seo" %}" part into my template. The result was instead of "Site name - page title" I just got "Site name - Site name". I have now realised that you need to add the SEO field to entries for it to work correctly, even if you do not want/need to be able to set page titles in the entry edit page.
The title never shows up for me. I've done all that is listed above including what @Moucky stated. Any ideas?
Figured it out. There's a difference between the Field settings and the SEO settings. It's a bit confusing.
@kinoli-opi Can you elaborate? I'm still getting the same site name - site name for everything even if I edit it on an entry itself.
Nm. I'm an idiot. I had the handle set different than 'seo' from {% hook 'seo' %}
@kinoli-opi Can you elaborate? I'm still getting the same site name - site name for everything even if I edit it on an entry itself.
See @Moucky answer. You need to create SEO field and add it to entries. Even if You have no need to adjust seo per entry.
I'm getting this error too. I've added the SEO field to all my entries. The title is set to {title} - {{siteName}} but the title is output as " - siteName".
Any ideas what I've missed?
PHP 7.4.15 Craft 3.6.10 SEO 3.6.7
Can those of your who are finding solutions to this provide a bit more detail on how you solved it? @kinoli-opi @setheryb
Currently I have a _base.twig file and in the
section I have word for word: {% hook "seo" %} In SEO config I have the title set to: {title}I have also confirmed that the entry for which I am testing has a title of "About us"
@wooge The {% hook 'seo' %}
tag will look for a field with the handle seo
on the entry you're viewing. So, you'll want to go to the field settings to adjust the variables included in the meta.
If you don't have a field called seo
on the entry, you'll want to create that first. Here's an example from one of our sites.
ugh... my bad. I feel like this a solid RTFM moment for me. Thank you for taking the time and effort to post this @alexjcollins !!