Archived topic
Schema Markup + Other Meta Mark Ups
5 replies · Started by Jacob on November 27, 2020
Hi guys,
I have three questions:
1) How would i edit the existing Schema? I'm referring to application/ld+json. I'd like to keep the Yoast plugin site wide, however I'd like to hand code my own on specific pages/scope.
2) How would I edit other existing meta data? For example I wanted to add or edit the existing OG (example: og:title) or meta name="twitter:site" - generally speaking, I want to add, not take away these types of meta data. Would I have to edit the theme source files? I can code, but my php is meh. Again, I'd like to do it for specific pages, not globally/site wide.
3) What about other types of meta data I'd like to hand code? I suppose my concern is that I'd like to be able to select the location in the <head> ie if I want to dublin core to a specific location in the <head>. Write a wp_head hook and change the priority somehow? Again, I'd like to do it for specific pages, not globally/site wide.
Thanks!!
Hi there,
the only Schema GP adds is Micro Data. If you're looking to add your own then you can disable the GP Schema:
https://docs.generatepress.com/article/generate_schema_type/
If you want to add Schema manually then you can use the Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
But there is no JSON-LD or OG meta controls within the theme. You would either have to code them manually or use a plugin for that.
Hi David,
Any suggestions for disabling Yoast schema on specific pages on a website? Thanks. No worries if it is not in your wheel house.
Yoast Provides the developer code here to do that:
https://developer.yoast.com/customization/yoast-seo/disabling-yoast-seo/
thanks!!!
You're welcome