Skip to content

Commit

Permalink
add more theme support
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-johnson committed Aug 13, 2019
1 parent 1731389 commit c6505c3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,43 @@
*/
function cata_after_setup_theme() {

add_theme_support( 'align-wide' );
add_theme_support( 'automatic-feed-links' );

$html5_options = array(
'caption',
'comment-form',
'comment-list',
'gallery',
'search-form',
// storefront has this, but why?
'widgets',
);

/**
* Theme Supports Editor Styles
*
* @todo add other aspects of block editor support.
* @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/
*/
add_theme_support( 'editor-styles' );

add_theme_support( 'html5', $html5_options );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'responsive-embeds' );
add_theme_support( 'title-tag' );

/**
* Theme Supports Woocommerce
*
* @link https://github.com/woocommerce/woocommerce/wiki/Declaring-WooCommerce-support-in-themes
*/
add_theme_support( 'woocommerce' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );

add_theme_support( 'wp-block-styles' );

}
endif;
add_action( 'after_setup_theme', 'cata_after_setup_theme' );
Expand Down

0 comments on commit c6505c3

Please sign in to comment.