I can not figure out how to add schema to my cms collection page. I have had success adding it to static pages in the Before </body> tag.
I tried searching the forum for this problem, but could not find it.
Read only LINK
CMS Collection: Cities
CMS Collection Page: Cities Template
This is how I am trying to add schema to the cms collections page.
- I created a plain text collection field. I then inputted the schema into the field.
- Then I added the collection field to “Before </body> tag”.
- This is the result at the bottom of my cms collection page.
I checked my schema at https://search.google.com/structured-data/testing-tool/u/0/ and the code looks correct.
If anybody has any idea how to get schema to work for my collection page it would be appreciated!