true, ] ); // Add custom editor font sizes. add_theme_support( 'editor-font-sizes', array( array( 'name' => __( 'Tiny', 'sidekick' ), 'shortName' => __( 'XS', 'sidekick' ), 'size' => 14, 'slug' => 'tiny', ), array( 'name' => __( 'Small', 'sidekick' ), 'shortName' => __( 'S', 'sidekick' ), 'size' => 15, 'slug' => 'small', ), array( 'name' => __( 'Normal', 'sidekick' ), 'shortName' => __( 'M', 'sidekick' ), 'size' => 16, 'slug' => 'normal', ), array( 'name' => __( 'Large', 'sidekick' ), 'shortName' => __( 'L', 'sidekick' ), 'size' => 19, 'slug' => 'large', ), array( 'name' => __( 'Huge', 'sidekick' ), 'shortName' => __( 'XL', 'sidekick' ), 'size' => 28, 'slug' => 'huge', ), ) ); // Editor color palette. add_theme_support( 'editor-color-palette', array( array( 'name' => __( 'Black', 'sidekick' ), 'slug' => 'black', 'color' => '#262626', ), array( 'name' => __( 'Red', 'sidekick' ), 'slug' => 'red', 'color' => '#ea5449', ), array( 'name' => __( 'White', 'sidekick' ), 'slug' => 'white', 'color' => '#ffffff', ), array( 'name' => __( 'Blue', 'sidekick' ), 'slug' => 'blue', 'color' => '#1e4a66', ), array( 'name' => __( 'Grey', 'sidekick' ), 'slug' => 'grey', 'color' => '#f2f2f2', ), ) ); } add_action( 'after_setup_theme', 'sidekick_setup', 11 ); /** * Enqueue scripts and styles */ function sidekick_scripts() { wp_dequeue_script( 'superhero-script' ); wp_dequeue_script( 'superhero-flex-slider' ); wp_dequeue_style( 'superhero-flex-slider-style' ); wp_dequeue_style( 'style' ); wp_enqueue_script( 'sidekick-script', get_stylesheet_directory_uri() . '/js/sidekick.js', array( 'jquery' ) ); wp_enqueue_style( 'sidekick-parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'style' ); } add_action( 'wp_enqueue_scripts', 'sidekick_scripts', 11 ); /** * Enqueue header image admin styles */ function sidekick_admin_header_style( $hook_suffix ) { if ( 'appearance_page_custom-header' != $hook_suffix ) return; ?> '', 'default-text-color' => '262626', 'width' => 480, 'height' => 150, 'flex-width' => true, 'flex-height' => true, 'wp-head-callback' => 'superhero_header_style', 'admin-head-callback' => 'superhero_admin_header_style', 'admin-preview-callback' => 'superhero_admin_header_image', ); return $args; } add_filter( 'superhero_custom_header_args', 'sidekick_custom_header_args', 999 ); /** * Set Sidekick theme colors */ $themecolors = array( 'bg' => 'e2e2e2', 'border' => 'dddddd', 'text' => '373737', 'link' => '1982d1', 'url' => '1982d1', );