[Resolved] Disable all of schema.org

Home Forums Support Disable all of schema.org

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #512524
    S-Config

    Hello again,

    I’m currently going through the source code my site generates and isolating all external references that are not links. The reason for this is I’m looking into getting a TOR address which means I have to be super-careful with not referencing anything outside of my domain name. One which keeps popping up a lot is references to schema.org all over my site.

    I did read this article and it helped with just the “CreativeWorks” Schema” but that is all. and doing a grep -rn “//schema.org/” finds that generatepress puts those references all over the place.

    Would it be possible to feature request an option to turn on and off schema site-wide? Thanks!

    output from grep -rn “//schema.org/:

    themes/generatepress/sidebar-left.php:27:<div id="left-sidebar" itemtype="http://schema.org/WPSideBar" itemscope="itemscope" role="complementary" <?php generate_left_sidebar_class(); ?>>
    themes/generatepress/inc/markup.php:35:                echo "itemtype='http://schema.org/$result' itemscope='itemscope'"; // WPCS: XSS ok, sanitization ok.
    themes/generatepress/inc/markup.php:50:                echo "itemtype='http://schema.org/$itemtype' itemscope='itemscope'"; // WPCS: XSS ok, sanitization ok.
    themes/generatepress/inc/structure/header.php:21:              <header itemtype="http://schema.org/WPHeader" itemscope="itemscope" id="masthead" <?php generate_header_class(); ?>>
    themes/generatepress/inc/structure/footer.php:21:              <footer class="site-info" itemtype="http://schema.org/WPFooter" itemscope="itemscope">
    themes/generatepress/inc/structure/navigation.php:20:          <nav itemtype="http://schema.org/SiteNavigationElement" itemscope="itemscope" id="site-navigation" <?php generate_navigation_class(); ?>>
    themes/generatepress/inc/structure/post-meta.php:141:                          sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%1$s <a class="url fn n" href="%2$s" title="%3$s" rel="author" itemprop="url"><span class="author-name" itemprop="name">%4$s</span></a></span>',
    themes/generatepress/sidebar.php:27:<div id="right-sidebar" itemtype="http://schema.org/WPSideBar" itemscope="itemscope" role="complementary" <?php generate_right_sidebar_class(); ?>>
    plugins/gp-premium/secondary-nav/functions/functions.php:528:           <nav itemtype="http://schema.org/SiteNavigationElement" itemscope="itemscope" id="secondary-navigation" <?php generate_secondary_navigation_class(); ?>>
    plugins/gp-premium/page-header/functions/functions.php:1073:            $author = sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author"><a class="url fn n" href="%1$s" title="%2$s" rel="author" itemprop="url"><span class="author-name" itemprop="name">%3$s</span></a></span>',
    plugins/gp-premium/menu-plus/functions/generate-menu-plus.php:572:      <nav itemtype="http://schema.org/SiteNavigationElement" itemscope="itemscope" id="mobile-header"<?php echo $hide_sticky;?> class="main-navigation mobile-header-navigation">
    plugins/gp-premium/menu-plus/functions/generate-menu-plus.php:617:      <nav itemtype="http://schema.org/SiteNavigationElement" itemscope="itemscope" id="generate-slideout-menu" class="main-navigation slideout-navigation">

    S-Config's HomePage: www.s-config.com

    Server protect you.

    GeneratePress 2.0.2
    #512575
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    We’d like to switch from microdata to JSON-LD in the very near future.

    For now I’m afraid you’d need to manually edit those files to remove the references.

    #512984
    S-Config

    At least there is something in the works to which I am happy for. I shall keep modifying then until i see the code change in an update down the road. Thank you for everything!

    S-Config's HomePage: www.s-config.com

    Server protect you.

    #513075
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.