Join the Webstudio community

Updated 4 weeks ago

How to set up schema markup on dynamic pages

At a glance

The community member is seeking help on how to set up custom schema markup for dynamic pages. A community member suggests adding an HTML embed and binding the values, and that schema can be placed in the head or body of the page. Another community member thanks them and says they will test it. A third community member provides a link to a new document about the expression editor and schema.

Useful resources
Hey all, please could you help me where I can set up custom schema markup for dynamic pages? I have it in my CRM, but I am not able to find place to link to schema to the header. Thank you
1
J
P
D
6 comments
Hey I add an HTML embed and the bind the values that way.

Schema can go in the head or body.

If you want head I suppose you could also use Head Slot and do the same thing.
Thank you. Will test it
Unfortunately it doesn't work for variables that are fed through GraphQl. I managed to bypass it only by forming the markup on the server and inserting the entire markup. I.e. variables available in the constructor are not visible in the JS environment.
Attachment
image.png
Structured data markup usually goes inside a <script> element in the <head> of the page β€” making it easier for search engines to crawl through the data without having to read the entire content of the page. How can we add structured data to the <head>, if it seems Webstudio right now does not allow it?...: https://discord.com/channels/955905230107738152/1360631772097806518
You can use the Head Slot component https://docs.webstudio.is/university/core-components/head-slot

Google says in body is fine and I've never seend a problem with it fwiw
Add a reply
Sign up and join the conversation on Discord