80, 'width' => 260, 'flex-width' => true, 'flex-height' => true, ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script' ) ); add_theme_support( 'align-wide' ); add_theme_support( 'responsive-embeds' ); add_theme_support( 'wp-block-styles' ); add_theme_support( 'editor-styles' ); add_editor_style( 'style.css' ); register_nav_menus( array( 'primary' => __( 'Primary Menu', 'stackyxa' ), 'footer' => __( 'Footer Menu', 'stackyxa' ), ) ); } endif; add_action( 'after_setup_theme', 'stackyxa_setup' ); function stackyxa_assets() { $version = wp_get_theme()->get( 'Version' ); wp_enqueue_style( 'stackyxa-style', get_stylesheet_uri(), array(), $version ); wp_enqueue_script( 'stackyxa-navigation', get_template_directory_uri() . '/assets/js/navigation.js', array(), $version, true ); } add_action( 'wp_enqueue_scripts', 'stackyxa_assets' ); function stackyxa_widgets_init() { register_sidebar( array( 'name' => __( 'Footer Widgets', 'stackyxa' ), 'id' => 'footer-widgets', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'stackyxa_widgets_init' ); function stackyxa_content_width() { $GLOBALS['content_width'] = apply_filters( 'stackyxa_content_width', 760 ); } add_action( 'after_setup_theme', 'stackyxa_content_width', 0 ); require_once get_template_directory() . '/inc/demo-importer.php';