WordPress.org

Forums

[suggestion] Adding Schema.org Markup to Themes (13 posts)

  1. tlongren
    Member
    Posted 1 year ago #

    Hi,

    It'd be awesome if more WordPress theme developers started adding schema.org markup to their themes.

    I wrote a quick how-to that shows how to add schema.org markup to pretty much any theme. I thought many of you would find it useful, as it can go a long way in helping Google and other search engines identify content on your site.

    http://www.longren.org/add-schema-org-markup-to-any-wordpress-theme/

    So, what do you think? Worth adding to themes or should plugins take care of it (I personally don't like that option)? I've gotten the impression that schema.org markup is preferred to OpenGraph, but can't find the source, so it's probably false.

    Mods, if this isn't the right place, please delete. Thanks!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Worth adding to themes or should plugins take care of it (I personally don't like that option)?

    This is really plugin territory.

  3. tlongren
    Member
    Posted 1 year ago #

    Is it really though? Plugins can't add the markup directly to the existing HTML tags.

    With the schema.org plugins I've seen, they all add their own content wrapped in schema.org markup. While if theme devs build it in, it's actually PART of the theme, which I believe it should be, as it's part of the HTML of the theme itself.

    Most respondents to this poll seem to think it should be handled by theme devs:
    http://www.longren.org/add-schema-org-markup-to-any-wordpress-theme/

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    If it is added via a theme. then that theme would be effectively locking in the user - which is not allowed in themes submitted to the WPORG Repository.

  5. tlongren
    Member
    Posted 1 year ago #

    I get that but using PHP is locking users in, too. I guess I fail to see how having schema.org markup in themes is detrimental to users. It anything, it's a good thing.

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Sorry? How so? WordPress itself uses PHP, so I don't see how the use of PHP has anything to do with anything.

  7. tlongren
    Member
    Posted 1 year ago #

    Yah that was a terrible example. Guess I'll just continue developing outside the WPORG Repository.

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    If you want to discuss this further as a potential theme feature, you could try posting to http://lists.wordpress.org/mailman/listinfo/theme-reviewers

  9. tlongren
    Member
    Posted 1 year ago #

    Don't think I'm up for that kind of discussion this early in the morning. :) I'll bring it up later this evening. Thanks for the tips @esmi!

  10. Gary Bairead
    Member
    Posted 1 year ago #

    @Esmi - can you elaborate why you believe this should be plugin territory?

    There is no lock-in effect for themes using Schema.org for structured markup - as long as it's for elements, and not for rich snippets (like reviews or recipes), similar to how there's no lock in effect for Twenty Fourteen using microformats for structured markup.

    Several themes in the repo already use Schema, including Stargazer by Justin Tadlock - https://wordpress.org/themes/stargazer

  11. Justin Tadlock
    WordPress God
    Posted 1 year ago #

    It'd be impossible for plugins to handle microdata for all themes. Themes vary too wildly in markup to even attempt that. Microdata is just a way of extending the markup of a page. All my themes, including Stargazer mentioned above, are getting this treatment. Markup is theme territory.

    Of course, if plugins are outputting data, they can also mark it up using microdata.

  12. crawlerguys
    Member
    Posted 10 months ago #

    By seeing this post we did a little search on free WordPress theme that support Schema and we found two

    1. Stargazer free wWordPress theme by Justin Tadlock
    2. Webify free WordPress theme with schema support by IdeaBox themes

  13. tlongren
    Member
    Posted 9 months ago #

    Lots of people have liked my article about integrating schema.org into child themes.

    I just wrote a similar piece for adding schema.org markup to WooCommerce products, if anyone is interested:
    https://longren.io/add-schema-org-markup-to-woocommerce-products/

Topic Closed

This topic has been closed to new replies.

About this Topic