100, 'width' => 350, 'flex-height' => true, 'flex-width' => true, ] ); add_theme_support( 'custom-header' ); // Add theme support for Custom Background. add_theme_support( 'custom-background', ['default-color' => ''] ); // Set the default content width. $GLOBALS['content_width'] = 960; // This theme uses wp_nav_menu() in one location register_nav_menus( array( 'main' => __( 'Main Menu', 'am-kinder-care' ), ) ); // Switch default core markup for search form, comment form, and comments to output valid HTML5 add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Gutenberg Embeds add_theme_support( 'responsive-embeds' ); add_theme_support( 'wp-block-styles' ); // Gutenberg Widge Images add_theme_support( 'align-wide' ); // WooCommerce in general. add_theme_support( 'woocommerce' ); // zoom. add_theme_support( 'wc-product-gallery-zoom' ); // lightbox. add_theme_support( 'wc-product-gallery-lightbox' ); // swipe. add_theme_support( 'wc-product-gallery-slider' ); add_editor_style( array( '/assets/css/editor-style.css' ) ); } add_action( 'after_setup_theme', 'am_kinder_care_setup' ); /* ** Enqueue scripts and styles */ function am_kinder_care_scripts() { // Theme Stylesheet wp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/assets/css/bootstrap.css', array(),'4.5.0' ); wp_enqueue_style( 'am-kinder-care-style', get_stylesheet_uri(), array(), '1.0' ); // Comment reply link if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script('am-kinder-care-custom-script', get_template_directory_uri() . '/assets/js/script.js', array('jquery'), '1.0', true); wp_enqueue_script('am-kinder-care-navigation', get_template_directory_uri() . '/assets/js/navigation.js', FALSE, '1.0', TRUE ); } add_action( 'wp_enqueue_scripts', 'am_kinder_care_scripts' ); // Tgm Include require_once get_template_directory() . '/inc/tgm/tgm.php';