Skip Navigation

[Resolved] Creating a layout on a Divi site – I want to add events schema

This support ticket is created 5 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 5 years, 4 months ago.

Assisted by: Nigel.

Author
Posts
#1353261
Screen Shot 2019-10-02 at 8.34.34 am.png

Tell us what you are trying to do?

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.

After reading https://toolset.com/documentation/recommended-themes/toolset-divi-integration/matching-divi-styling-using-toolset/ it basically says don't try to use layouts with Divi.

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

#1353637

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Chris

I'm not sure what has led you to think that adding Layouts will provide schema.org support.

Toolset doesn't include support for schema.org (it has been discussed, but is not currently on our roadmap; you can request it here: https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/).

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