'#1e73be', ); add_theme_support( 'custom-background' ); add_theme_support( 'custom-logo', array( 'height' => 100, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); register_nav_menus( array( 'amzpress-primary-menu' => esc_html__( 'Primary Menu', 'amzpress' ), 'amzpress-footer-menu' => esc_html__( 'Footer Menu', 'amzpress' ) ) ); global $content_width; if ( ! isset( $content_width ) ) { $content_width = 1200; /* pixels */ } } endif; add_action( 'after_setup_theme', 'amzpress_setup' ); /** * Registers an editor stylesheet for the theme. */ function wpdocs_theme_add_editor_styles() { add_editor_style( '/assets/css/custom-editor-style.css' ); } add_action( 'admin_init', 'wpdocs_theme_add_editor_styles' ); /** * Enqueue scripts and styles. */ function amzpress_scripts() { wp_enqueue_style('amzpress-googlefonts', '//fonts.googleapis.com/css2?family=Ubuntu:wght@300;400&display=swap'); wp_enqueue_style( 'amzpress-font-awesome', get_template_directory_uri() . '/assets/css/font-awesome.min.css', array(), '4.7.0', 'all' ); wp_enqueue_style( 'amzpress-superfish', get_template_directory_uri() . '/assets/css/superfish.css'); wp_enqueue_style( 'amzpress-slicknav', get_template_directory_uri() . '/assets/css/slicknav.css'); wp_enqueue_style( 'amzpress-main-style', get_template_directory_uri() . '/assets/css/amzpress-style.css'); wp_enqueue_style( 'amzpress-style', get_stylesheet_uri(), array(), '1.0.0' ); wp_style_add_data( 'amzpress-style', 'rtl', 'replace' ); // Background color $amzpress_bg_color = get_theme_mod('amzpress_bg_color_setting', '#F7F8F9'); $amzpress_display_bg_color =<< a { color: {$amzpress_primary_menu_hover_color}; } .sf-arrows > li > .sf-with-ul:focus:after, .sf-arrows > li:hover > .sf-with-ul:after, .sf-arrows > .sfHover > .sf-with-ul:after { border-top-color: {$amzpress_primary_menu_hover_color}; } .sf-menu ul { border-bottom:2px solid {$amzpress_primary_menu_hover_color}; } a.search-btn { color: {$amzpress_primary_menu_hover_color}; } EOD; wp_add_inline_style('amzpress-style', $amzpress_display_primary_menu_hover_color); // Header Text Colour $amzpress_headertext_color = get_theme_mod('amzpress_headertext_color_setting', '#111111'); $amzpress_display_headertext_color =<< esc_html__( 'Sidebar', 'amzpress' ), 'id' => 'amzpress-sidebar', 'description' => esc_html__( 'Add widgets here.', 'amzpress' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Header Top Bar', 'amzpress' ), 'id' => 'amzpress-top-bar', 'description' => esc_html__( 'Add widgets here.', 'amzpress' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget 1', 'amzpress' ), 'id' => 'amzpress-fw1', 'description' => esc_html__( 'Add widgets here.', 'amzpress' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget 2', 'amzpress' ), 'id' => 'amzpress-fw2', 'description' => esc_html__( 'Add widgets here.', 'amzpress' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget 3', 'amzpress' ), 'id' => 'amzpress-fw3', 'description' => esc_html__( 'Add widgets here.', 'amzpress' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Bar', 'amzpress' ), 'id' => 'amzpress-footer-bar', 'description' => esc_html__( 'Add widgets here.', 'amzpress' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'amzpress_widgets_init' ); endif; /** * Add a pingback url auto-discovery header for single posts, pages, or attachments. */ function amzpress_pingback_header() { if ( is_singular() && pings_open() ) { printf( '', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'amzpress_pingback_header' ); /** * Required files */ require get_template_directory() . '/inc/custom-header.php'; require get_template_directory() . '/inc/customizer.php'; require get_template_directory() . '/inc/post-meta.php'; require get_template_directory() . '/inc/metabox.php'; /** * Load Jetpack compatibility file. */ if ( defined( 'JETPACK__VERSION' ) ) { require get_template_directory() . '/inc/jetpack.php'; }