• 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 change the default Schema from CreativeWork to TechArticle?

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 change the default Schema from CreativeWork to TechArticle?

This topic is: resolved

Tagged: schema

  • This topic has 3 replies, 3 voices, and was last updated 7 years, 10 months ago by netproject.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 12, 2017 at 11:27 pm #212478
    vamhh
    Member

    Since my website is about technology and how-to guides. I want to be more specific and change the default schema from creativework to techarticle. Is there any code snippet that helps me do this? I'm using Eleven40 theme.

    October 13, 2017 at 12:09 am #212479
    Victor Font
    Moderator

    Try this in functions.php:

    add_filter( 'genesis_attr_entry', 'entry_attributes_techarticle' );
    function entry_attributes_techarticle( $attributes ){
        
        $attributes['itemtype']  = 'http://schema.org/TechArticle';
        
        return $attributes;
    }

    Regards,

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

    October 14, 2017 at 9:30 am #212530
    vamhh
    Member

    Thanks that worked. I've also found a plugin called Schema (https://wordpress.org/plugins/schema/) I will try it out.

    January 19, 2018 at 5:06 am #215527
    netproject
    Participant

    According to Google's Structured Data Testing Tool changing the Itemtype to Article, TechArticle or Blogposting will require further attributes/itemprops in order to receive a results free from errors or warnings. I was able to add the Itemprop Headline and change Itemprop Text into ArticleBody.

    But, what would be the filter & function to add further Itemprops using your code above, please? An example code would help me a lot here 🙂

    • datePublished
    • image
    • publisher
    • dateModified
    • dateModified
    • mainEntityOfPage
    • mainEntityOfPage

    I already tried genesis-attr_entry-modified-time or genesis-attr_entry-published-time without getting results.

    Thanks a lot for a hint
    Best Mark

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How do I change the default Schema from CreativeWork to TechArticle?’ 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