post_name; } // Sidebar Classes if( is_page() && !is_page_template( 'page-sidebar.php' ) ) { $classes[] = 'wpbf-no-sidebar'; } else { $classes[] = wpbf_sidebar_layout() == 'none' ? 'wpbf-no-sidebar' : 'wpbf-sidebar-' . wpbf_sidebar_layout(); } // Full Width Body Class $inner_content = wpbf_inner_content( $echo = false ); if( !$inner_content ) { $classes[] = 'wpbf-full-width'; } return $classes; } add_filter( 'body_class', 'wpbf_body_classes' ); /** * Post Classes */ function wpbf_post_classes( $classes ) { // Add wpbf-post class to all Posts $classes[] = 'wpbf-post'; return $classes; } add_filter( 'post_class', 'wpbf_post_classes' );