Skip to content

Instantly share code, notes, and snippets.

@feliciaceballos
Created February 28, 2019 23:20
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 feliciaceballos/3ccf5081ee7708e11e82d371ebc861e3 to your computer and use it in GitHub Desktop.
Save feliciaceballos/3ccf5081ee7708e11e82d371ebc861e3 to your computer and use it in GitHub Desktop.
Genesis Page Index
<?php
/*
Template Name: Writing Index
*/
//* Adds a CSS class to the body element
add_filter( 'body_class', 'bbs_index_body_class' );
function bbs_index_body_class( $classes ) {
$classes[] = 'bbs-index';
return $classes;
}
add_action( 'genesis_entry_content', 'fc_display_posts_from_other_blogs' );
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment