|
@@ -28,8 +28,6 @@ if ( ! function_exists( 'skatepark_support' ) ) :
|
|
'social' => __( 'Social Navigation', 'skatepark' )
|
|
'social' => __( 'Social Navigation', 'skatepark' )
|
|
)
|
|
)
|
|
);
|
|
);
|
|
-
|
|
|
|
- remove_theme_support( 'block-templates' );
|
|
|
|
}
|
|
}
|
|
add_action( 'after_setup_theme', 'skatepark_support' );
|
|
add_action( 'after_setup_theme', 'skatepark_support' );
|
|
endif;
|
|
endif;
|
|
@@ -61,7 +59,7 @@ require get_stylesheet_directory() . '/inc/block-styles.php';
|
|
/**
|
|
/**
|
|
* Add class to body if post/page has a featured image.
|
|
* Add class to body if post/page has a featured image.
|
|
*/
|
|
*/
|
|
-function add_featured_image_class( $classes ) {
|
|
|
|
|
|
+function add_featured_image_class( $classes ) {
|
|
global $post;
|
|
global $post;
|
|
if ( isset ( $post->ID ) && get_the_post_thumbnail( $post->ID ) ) {
|
|
if ( isset ( $post->ID ) && get_the_post_thumbnail( $post->ID ) ) {
|
|
$classes[] = 'has-featured-image';
|
|
$classes[] = 'has-featured-image';
|