- This topic has 2 replies, 3 voices, and was last updated 4 years, 1 month ago by
CRISTO.
-
AuthorPosts
-
February 23, 2019 at 9:30 am #818960
Mario
Hello GP Team,
I’m a long time user of your theme for many of my client sites in the last 2 years and consider myself a “semi” web developer (5/10).
I’m now focusing on larger clients who will be much more heavy on speed,SEO rankings, and ease of implementation of advanced features which I want to transfer to your theme considering the following:
Q#1 – In regards to installing schema markup (JSON+LD), is there an easy way to do this with your theme? I have a method of doing it with Google Tag Manager to be able to pull in dynamic variables, but want to see if it’s possible to use dynamic variables without GTM for a person who knows HTML/CSS at an intermediate/advanced level and little to no PHP/Javascript but can understand and fix the basics of error codes there…
Q#2 – I started noticing Woocommerce automatically creates JSON+LD for you. Can GP remove this with my own JSON+LD that would contain dynamic variables to pull in for example, reviews from a third party?
I know it’s a loaded question but it’s very important for me! I appreciate the response.
the website you see is doing quite a bit of volume so transferring it will be no easy task, but would like your input on the above.
Thanks
GeneratePress 2.2.2GP Premium 1.7.8February 23, 2019 at 5:21 pm #819281Tom
Lead DeveloperLead DeveloperHi there,
1. We don’t have JSON-LD built in at the moment, but it should be just as easy to implement in GP as anywhere else. You can even use our Elements module to insert page/post type specific JSON-LD using the
wp_footer
hook.Alternatively, you can use a JSON-LD plugin. There’s a few of them out there, and they should all work nicely with GP.
2. GP itself can’t remove that JSON-LD for you, but you should be able to remove it with this function:
add_action( 'init', function() { if ( ! class_exists( 'WC' ) ) { return; } remove_action( 'wp_footer', array( WC()->structured_data, 'output_structured_data' ), 10 ); remove_action( 'woocommerce_email_order_details', array( WC()->structured_data, 'output_email_structured_data' ), 30 ); } );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 25, 2019 at 7:03 am #820934CRISTO
My guess is he does not sleep…amazed at the service he provides.
-
AuthorPosts
- You must be logged in to reply to this topic.