Skip to content

Commit

Permalink
make bip pages use page styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarczewski committed Aug 18, 2019
1 parent a480f8f commit eaa3b87
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bip-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ function add_title_container( $title, $id = null ) {
}
add_filter( 'the_title', __NAMESPACE__ . '\add_title_container', 10, 2 );

function add_post_class( $classes, $class = '', $post_id = '' ) {
$post = get_post();
if ( $post->post_type == 'bip' ) {
$classes[] = 'type-page';
}

return $classes;
}
add_filter( 'post_class', __NAMESPACE__ . '\add_post_class' );

/** auxiliary **/
add_filter( 'display_post_states', __NAMESPACE__ . '\mark_bip_main_page', 10, 2 );
function mark_bip_main_page( $post_states, $post ) {
Expand Down

0 comments on commit eaa3b87

Please sign in to comment.