- This topic has 3 replies, 2 voices, and was last updated 4 years, 10 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
When checking Google Webmaster Tools, I discovered errors in the Structured Data section. It turns out that Genesis does not include the "name" field in the following code on the single product page:
<div itemscope itemtype="http://schema.org/Product" id=....
I am aware that this is coming from the "single-product.php" template within the Genesis Connect for WooCommerce plugin.
How do I get rid of this entirely? I can live without this schema, since I have another source that correctly generates the schema using JSON+LD format.
Anyone run into this before?https://www.tacknrider.com/shop/equiline-soundless-ear-net-soundless-ears/
I was able to figure out how to accomplish this. It turns out that this is not Genesis related anyway.
The error message I received in GSC (Google Search Console) implied that I needed to add an element with the itemprop="name" tag.
Just add that tag in the single-product/title.php file as follows:
the_title( '<h1 class="product_title entry-title" itemprop="name">', '</h1>' );
Hope this helps someone.
Thanks, Vic for the follow up. I am aware of the Woocommerce templating system/process.
© 2022 WPEngine, Inc.