__( 'Primary', 'blank-canvas' ), 'slug' => 'primary', 'color' => $primary, ), array( 'name' => __( 'Secondary', 'blank-canvas' ), 'slug' => 'secondary', 'color' => $secondary, ), array( 'name' => __( 'Foreground', 'blank-canvas' ), 'slug' => 'foreground', 'color' => $foreground, ), array( 'name' => __( 'Tertiary', 'blank-canvas' ), 'slug' => 'tertiary', 'color' => $tertiary, ), array( 'name' => __( 'Background', 'blank-canvas' ), 'slug' => 'background', 'color' => $background, ), ) ); } endif; add_action( 'after_setup_theme', 'blank_canvas_setup', 11 ); /** * Remove Seedlet theme features. */ function blank_canvas_remove_parent_theme_features() { // Theme Support remove_theme_support( 'custom-header' ); remove_theme_support( 'custom-logo' ); remove_theme_support( 'customize-selective-refresh-widgets' ); // Navigation Areas unregister_nav_menu( 'primary' ); unregister_nav_menu( 'footer' ); unregister_nav_menu( 'social' ); } add_action( 'after_setup_theme', 'blank_canvas_remove_parent_theme_features', 10 ); function blank_canvas_dequeue_parent_scripts() { // Naviation assets wp_dequeue_script( 'seedlet-primary-navigation-script' ); wp_dequeue_style( 'seedlet-style-navigation' ); } add_action( 'wp_enqueue_scripts', 'blank_canvas_dequeue_parent_scripts', 11 ); /** * Remove Meta Footer Items. */ if ( ! function_exists( 'seedlet_entry_meta_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function seedlet_entry_meta_footer() { // Edit post link. edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers. */ __( 'Edit %s', 'seedlet' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '' . seedlet_get_icon_svg( 'edit', 16 ), '' ); } endif; /** * Enqueue scripts and styles. */ function blank_canvas_enqueue() { wp_enqueue_style( 'blank-canvas-styles', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'blank_canvas_enqueue', 11 );