Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Last active October 24, 2015 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/831699ea0e3bd8409bed to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/831699ea0e3bd8409bed to your computer and use it in GitHub Desktop.
Check if the child theme is HTML5 or XHTML with Genesis
<?php
// Paste the code BELOW this line into your plugin.
/**
* Check if the child theme is HTML5 or XHTML with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-html5/
*/
add_filter( 'genesis_footer_creds_text', 'rtug_currently_reading' );
function rtug_currently_reading() {
if ( genesis_html5() )
return 'I am currently reading <span itemscope itemtype="http://schema.org/Book"><em itemprop="name">Go Set a Watchman</em> by <span itemprop="author">Harper Lee</span></span>.';
else
return 'I am currently reading <em>Go Set a Watchman</em> by Harper Lee.';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment