100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), 'unlink-homepage-logo' => true, ); add_theme_support( 'custom-logo', $defaults ); $headerArgs = array( 'default-image' => '', 'default-text-color' => '000', //'width' => 1000, //'height' => 250, 'flex-width' => true, 'flex-height' => true, ); add_theme_support( 'custom-header', $headerArgs ); if ( ! isset( $content_width ) ) { $content_width = 600; } add_editor_style(); add_theme_support( 'custom-background', [ 'default-color' => 'ffffff', 'default-image' => '', 'default-repeat' => 'no-repeat', ] ); } add_action( 'after_setup_theme', 'ashareSmallParts'); function ashareMenus() { register_nav_menus( array( 'primary-menu' => __('Primary Menu', 'ashare') )); } add_action('init', 'ashareMenus'); function ashareSidebar() { register_sidebar( array( 'name' => __('Ashare Sidebar Widget', 'ashare'), 'id' => 'ashare-sidebar', 'before_title' => '

', 'after_title' => '

' )); } add_action( 'widgets_init', 'ashareSidebar'); // Loading Social Icon Customizer require_once( __DIR__ . '/inc/customizer-social-icons.php'); // Loading Theme Template Helpers Functions require_once( __DIR__ . '/inc/ashare-template-tags.php'); function ashare_sanitize_url($ar) { return esc_url($ar) ; }