Skip to content

Instantly share code, notes, and snippets.

Created June 9, 2015 08:53
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 anonymous/e15c9a615f938889b550 to your computer and use it in GitHub Desktop.
Save anonymous/e15c9a615f938889b550 to your computer and use it in GitHub Desktop.
<?php
/*
Template Name: Book Page
*/
?>
<?php
add_filter('genesis_pre_get_option_site_layout', '__genesis_return_full_width_content');
add_filter('body_class', 'bloggeek_add_book_body_class');
/**
* Add page specific body class
*
* @param $classes array Body Classes
* @return $classes array Modified Body Classes
*/
function bloggeek_add_book_body_class($classes) {
$classes[] = 'bookpage';
return $classes;
}
genesis(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment