Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEO setting does not save page title tokens. #472

Open
krisMoca opened this issue Mar 27, 2024 · 3 comments
Open

SEO setting does not save page title tokens. #472

krisMoca opened this issue Mar 27, 2024 · 3 comments

Comments

@krisMoca
Copy link

krisMoca commented Mar 27, 2024

Description

There is only 1 token added and yet 2 tokens were rendered - title and site name.

Further testing added 4 tokens and yet 2 tokens were rendered.

Steps to reproduce

  1. Go to SEO settings
  2. Under page meta >page title update (add or remove) the tokens.
  3. Check the SEO rendered.

Additional info

  • Craft version: Pro 4.8.4
  • SEO version: 4.2.2
  • PHP version: 8.0.2
  • Database driver & version:
  • Other Plugins:

Screenshot 2024-03-28 105235
Screenshot2 2024-03-28 105329
Screenshot3 2024-03-28 105427

@krisMoca krisMoca changed the title SEO settings does not save page title tokens. SEO setting does not save page title tokens. Mar 27, 2024
@Tam
Copy link
Member

Tam commented Apr 4, 2024

@krisMoca The field settings in your screenshot are used as the defaults for any SEO fields you create. It's likely that you'll want to edit the SEO field itself rather than the default settings.

@jankohlbach
Copy link

for me, it only renders the site title, always
even though it is showing it correct in the preview in the backend
running on craft 5 with the rc

@jankohlbach
Copy link

ah, I changed the handle of the seo field, because I want two different title formats
is there a way to do this?
<title>{{entry.uri == 'home' ? currentSite.name : (customTitle is defined ? customTitle : entry.title) ~ ' | IWML'}}</title>
is what I tried, but that wasn't working
basically, on home I want {{sitename}}
and on the other ones {{pagetitle | statictext}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants