- This topic has 8 replies, 5 voices, and was last updated 2 years, 7 months ago by David.
July 11, 2018 at 12:08 am #620837Derek
I’m using Google’s tool, and the instructions say:
“Select JSON-LD from the dropdown menu. Copy the code and paste it into the <head> or <body> tags in the HTML code of the respective page on your website.”
Do I use the GP Hooks? I’m assuming no because that’s global right? Is there a way to do this in GP or do I need a plugin to insert code like this into individual pages?
I ready somewhere that GP was schema ready so IDK what that means, but I certainly didn’t want to break anything!
Thank you!GeneratePress 2.1.3GP Premium 1.6.2July 11, 2018 at 5:38 am #620988DavidStaffCustomer Support
you can use GP Hooks, and wrap the code within an a Conditional tags like so:
Or wait a little while for GPP 1.7 which will make this super easy.July 11, 2018 at 11:05 pm #621689Derek
Thanks, it will be a while before I get to implementing this anyway. Any idea when 1.7 will be out?July 11, 2018 at 11:15 pm #621694LeoStaffCustomer Support
The first beta has been out for awhile and a second beta is about to out as well.
You can test it out:
https://generatepress.com/gp-premium-1-7/March 1, 2019 at 3:40 am #825417Michael
I am wanting to add my structured data but can’t find any documentation on how to do it or what this thread was alluding to about it being super easy….can you guide me?
ThanksMarch 1, 2019 at 5:51 am #825496DavidStaffCustomer Support
the plan to integrate JSON-LD into the theme was put on hold, its planned for a later update but is a significant change so needs to be done right.
You can use GP Hooks to include your Structured Data:
Or you can use a dedicated JSON-LD Structured Data plugin.March 1, 2019 at 7:47 am #825711Ender
I have good experiences with this plugin https://wordpress.org/plugins/schema/March 1, 2019 at 7:50 am #825713Michael
Thanks I did it using a hook and it was 5mins to set up and has passed googles mark up testing tool so I am all good thanks.March 1, 2019 at 10:03 am #825839
- You must be logged in to reply to this topic.