ethercreative / seo

SEO utilities including a unique field type, sitemap & redirect manager
MIT License
267 stars 95 forks source link

Default page description in settings & entries are different #455

Closed ejaedesign closed 1 year ago

ejaedesign commented 1 year ago

Description

The default page description in Settings is different than what's showing up as "default" in the page description per entry. I also can't find where the text is coming from.

Steps to reproduce

  1. Go to Settings and check page description
  2. Go to an entry and check page description

Where is the place I can edit the default page description and if it's in the Settings, why is it different than what's showing in each entry's description field?

When I edit the "default" description in the entry, the new description does show up with the {{ seo.description }} tag.

Thanks in advance!

alexjcollins commented 1 year ago

Hi @ejaedesign Just so I'm clear, have you added an SEO field to the entries you're referencing? As you can also set defaults in the field when you create that. Thanks

ejaedesign commented 1 year ago

Hi Alex, Yes, the seoField is available in every section. Do I go into the field settings to change the default description? Thanks for the quick response!

ejaedesign commented 1 year ago

Nope, I answered my own question here. I found it in the field settings indeed!

Also, is there a way to output the Focus Keywords that are entered in each entry?

alexjcollins commented 1 year ago

Yeah, if you're using the field on an entry, you will want to edit the defaults there (field settings).

The global defaults are more for use in templates that aren't represented in a Craft section, such as a static template that doesn't need full CMS integration.

Hope that helps!

ejaedesign commented 1 year ago

Got it.

Now, is there a way to output the focus keywords? {{ seo.keywords }} or similar?

alexjcollins commented 1 year ago

Sure, although we don't include them in our meta template, because they're not used by Google for ranking.

This snippet should work:

{% for k in entry.seo.keywords %}
    {{ k.keyword }}
{% endfor %}
ejaedesign commented 1 year ago

Great. Thanks so much, Alex!