• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How do I disable specific Schma.org code on Single Product page?

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How do I disable specific Schma.org code on Single Product page?

This topic is: not resolved

Tagged: genesis connect, schema, single product

  • This topic has 3 replies, 2 voices, and was last updated 4 years, 10 months ago by amitramani.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 23, 2017 at 1:29 pm #208189
    amitramani
    Member

    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/
    June 23, 2017 at 9:59 pm #208223
    amitramani
    Member

    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.

    June 24, 2017 at 6:57 am #208232
    Victor Font
    Moderator

    Make sure you follow the WooCommerce process for customizing their templates otherwise your changes will be overwritten when there is a new release of WooCommerce.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    June 24, 2017 at 9:11 am #208239
    amitramani
    Member

    Thanks, Vic for the follow up. I am aware of the Woocommerce templating system/process.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble