Hi. I have many custom post types on my site - I created different ones for trick-or-treat and another for halloween-events.
Given that Google now extracts data from pages using the Event schema (hidden link) and shows them higher on the results before actual website pages, I want my events to appear in the Google Search Results Events box.
So basically I want to add event schema tags to a content layout for my events posts.
I assume I need a custom layout.
I had an initial problem installing layouts - it broke my display - until I read the docs where it said to disable bootstrap. Phew.
Given my objective of adding event schema tags to wrap around custom fields (date, location, suburb, url) in my event pages, what is your recommendation?
Should I try to force them into layouts, or do i have to use divi?
eg this page - hidden link
and the attached screenshot of the google results with event box
If you are using Divi then you shouldn't use Layouts, and it won't help when it comes to adding schema.org support.
In the absence of Toolset support, you'll need to set it up yourself, I'm afraid.
The schema data can be added in the header in a JSON format, or can be added directly to the HTML with the itemscope and itemtype attributes.
There are plugins for the first (e.g. https://wordpress.org/plugins/schema/), or you could update the markup in your templates to include the required attributes. (You would likely generate some of them using shortcodes for field or taxonomy values.)
See the following documentation for details: hidden link hidden link hidden link