WooCommerce compatibility
-
Hey there,
This plugin claims WooCommerce compatibility but offers no specific output for Product pages or any other WooCommerce page.
Further, it injects bogus output into Category pages due to the taxonomy plugin being broken. It detects Category pages as Taxonomies, and injects the following (depending on the number of pages in the category):
<!-- This site is optimized with the Schema plugin v1.6.9.7 - https://schema.press --> <script type="application/ld+json">["","","","","","","","","",""]</script>
To fix this I modified includes/taxonomy.php on line 61 to only insert *non blank* sub page json into the main array (via the added && ! is_empty($schema_json))
61 if ( isset($schema_json) && ! is_empty($schema_json)) {
Hope this helps someone.
Jason
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WooCommerce compatibility’ is closed to new replies.