Adding Custom Schema In Genesis For Your Specific Niche

Read a useful post on Ryan Fmeier’s blog today about adding custom microdata in Genesis child themes which I highly recommend you check out.

In this post, i’ll provide you with some working code snippets based on modifying Ryans code, which you can simply copy and paste into your child themes functions.php file.

Firstly, here’s a video conversation which includes some of the Genesis Developers discussing the latest framework update. It includes discussion about some of the new features as well as the benefits of using Genesis to output your HTML 5 markup as microdata.

The Discussion about how you can add custom schema in your child theme starts at the 20:35 mark with Nathan Rice.

If you watch this discussion on video, you can also get some insight into how the Genesis Developers work together.

Genesis 2.0 Round Table Video Discussion

Default Genesis 2.0 Schema

Here’s some real examples of the schema added to different elements already included in Genesis 2.0.

SchemaHTML Elements Attributed To
http://schema.org/WebPageAdd attributes for body element
http://schema.org/WPHeaderAdd attributes for site header element.
http://schema.org/SiteNavigationElementAdd attributes for primary navigation & secondary navigation element
http://schema.org/BlogAdd attributes for main content element
http://schema.org/SearchResultsPageAdd attributes for main content element
http://schema.org/CreativeWorkAdd attributes for entry element
http://schema.org/BlogPostingAdd attributes for entry element
http://schema.org/PersonAdd attributes for author element for an entry
http://schema.org/UserCommentsAdd attributes for single comment element
http://schema.org/PersonAdd attributes for comment author element
http://schema.org/WPSideBarAdd attributes for primary & secondary sidebar element
http://schema.org/WPFooterAdd attributes for site footer element

Add Custom Schema

This code includes the page i.d’s which you can change to your own. You could also use the page name or page slug in place of the page or post i.d.

Here’s a full list of all schema’s you can choose from based on your niche and the content you publish on your website.

How This Helps You

One of the greatest benefits of micro data, is the ability to create or customize a theme using schema specific to your niche. Custom schema will be included in future child themes StudioPress release. They have also developed niche specific child themes which include custom schema that they plan on releasing shortly after Genesis 2.0 is released.

An example of this would be a theme focused on food or the real estate market.

Genesis child themes can now output your HTML 5 markup as microdata which has several benefits. By adding niche specific schema, the content added to your theme should be better understood by the search engines.

Plugin for Non Genesis Theme Users

If your theme doesn’t support HTML 5 and include schema, you could install a plugin.


Comments

6 responses to “Adding Custom Schema In Genesis For Your Specific Niche”

  1. […] the body tag, however often when I come across implementations of this, for example the following theme, it recommends putting the sub categories separately inside the webpage […]

  2. […] Read this article: Adding Custom Schema In Genesis For Your Specific Niche […]

  3. Hi Brad

    I am trying to add the below scenario to a custom plugin forked from https://gist.github.com/rfmeier/5819442

    The plugin should include geodata. Could you please help in describing how this can be implemented from within the plugin. My limited coding knowledge has me going around in circles for days now.
    [code]
    $attributes[‘itemtype’] = ‘http://schema.org/SportsActivityLocation’;
    $attributes[‘itemprop’] = ‘geo’;
    $attributes[‘itemprop’] = ‘latitude’ $attributes[‘content’] =’-33.0000′;
    $attributes[‘itemprop’] = ‘longitude’ $attributes[‘content’] =’18.0000′;
    [/code]
    Regards,
    Dale

    1. Brad Dalton Avatar
      Brad Dalton

      You need to Pay the membership fee to get unlimited answers for 1 month http://wpsites.net/registration/

  4. […] a full list of the default markup in Genesis 2.0, see this super post by Brad Dalton on WPSites. It also includes the Hangout video from a Genesis Roundtable that aired […]

  5. […] Adding Custom Schema In Genesis For Your Specific Niche […]

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.