• 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

About JSON-LD in Genesis Themes

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 › General Discussion › About JSON-LD in Genesis Themes

This topic is: resolved

Tagged: json-ld, microdata, schema.org

  • This topic has 3 replies, 2 voices, and was last updated 7 years, 2 months ago by Gary Jones.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 2, 2018 at 9:18 pm #216046
    Angelo
    Member

    Hi, I would like someone to help me with a question. If I include JSON-DL script in the head of a Theme, is it necessary to remove the default microdata that has the theme? or is it irrelevant?

    https://json-ld.org/
    February 4, 2018 at 11:48 am #216071
    Gary Jones
    Member

    The advice is generally to have only one form of semantic data, so if you add JSON LD, then yes, I'd recommend you remove the microdata attributes as well.

    See lib/functions/markup.php for where the microdata attributes are added in via a filter (so you can add your own filters to remove them, or remove_filter() when the filter *only* contains microdata attributes).


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

    February 24, 2018 at 11:03 pm #216966
    Angelo
    Member

    Thanks Gary,
    I will take your advice.
    I found lib/customize.php and lib/theme-defaults.php but markup.php and schema funtions anywhere
    I will keep trying

    February 26, 2018 at 3:14 am #217012
    Gary Jones
    Member

    Angelo,

    The existing schema attributes are added via the lib/functions/markup.php file.

    You can use this solution to remove the microdata attributes.


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘About JSON-LD in Genesis Themes’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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