seo icon indicating copy to clipboard operation
seo copied to clipboard

Incorrect title format

Open piotrpog opened this issue 5 years ago • 17 comments

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.

piotrpog avatar Jan 11 '20 19:01 piotrpog

any news on this?

jarheadcore avatar Jan 24 '20 10:01 jarheadcore

I have the same issue. It seems to happen on all installations now.

victor-sm avatar Feb 13 '20 14:02 victor-sm

can confirm

cruiser12 avatar Feb 23 '20 23:02 cruiser12

Also having this issue.

Moucky avatar Feb 27 '20 21:02 Moucky

Anyone figure this out?

Moucky avatar Mar 24 '20 22:03 Moucky

Same issue here.

thomasbendl avatar Mar 31 '20 11:03 thomasbendl

This is definitely a bug right? I have this exact problem and am still not sure if I'm doing something wrong or not.

Moucky avatar Apr 28 '20 20:04 Moucky

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.

Moucky avatar May 25 '20 01:05 Moucky

The title never shows up for me. I've done all that is listed above including what @Moucky stated. Any ideas?

kinoli avatar Jun 23 '20 15:06 kinoli

Figured it out. There's a difference between the Field settings and the SEO settings. It's a bit confusing.

kinoli-opi avatar Jun 23 '20 15:06 kinoli-opi

@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.

setheryb avatar Aug 02 '20 12:08 setheryb

Nm. I'm an idiot. I had the handle set different than 'seo' from {% hook 'seo' %}

setheryb avatar Aug 05 '20 06:08 setheryb

@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.

lexislav avatar Oct 08 '20 19:10 lexislav

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

tejclark avatar Mar 19 '21 15:03 tejclark

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"

adrianjean avatar Apr 29 '21 13:04 adrianjean

@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. Screenshot 2021-04-29 at 14 46 25

alexjcollins avatar Apr 29 '21 13:04 alexjcollins

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 !!

adrianjean avatar Apr 29 '21 13:04 adrianjean