wp-73k/src/classes.php

23 lines
342 B
PHP
Raw Normal View History

2019-05-23 12:30:31 -04:00
<?php
/**
* This file adds functions and actions for classes.
*
* @author Freeshifter LLC
* @since 1.0.0
*/
namespace WP_Tailwind;
add_filter( 'body_class', function( $classes ) {
if ( is_singular( ['post', 'page'] ) ) {
$classes[] = 'singular';
}
if ( is_front_page() ) {
$classes[] = 'front-page';
}
return $classes;
});