__( 'Main Primary Navigation', 'amp' ), 'secondary' => __( 'Secondary Mobile Navigation', 'amp' ), 'footer' => __( 'Secondary Footer Navigation', 'amp' ) ) ); // supports custom header upload image // Add a filter to image_width and image_height to change the width and height of your custom header. $custom_header_support = array( 'default-image' => get_template_directory_uri() . '/assets/logo-256.png', 'random-default' => false, 'flex-height' => true, 'flex-width' => true, 'uploads' => true, 'header-text' => false, 'width' => 426, 'height' => 100, ); add_theme_support( 'custom-header', $custom_header_support ); } add_action('after_setup_theme', 'amp_setup'); function amp_add_theme_scripts() { // Loads default main stylesheet. wp_enqueue_style( 'style', get_stylesheet_uri() ); // script to help html5 and script to call up mobile menu wp_enqueue_script( 'modernizer-js', get_template_directory_uri() .'/assets/modernizr.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'amp-mobile', get_template_directory_uri() . '/assets/amp-mobile.js', array('jquery'), '1.0.0', true ); /* * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'amp_add_theme_scripts' ); // add ie conditional html5 shim to header function amp_add_ie_html5_shim () { echo "\n"; } add_action('wp_head', 'amp_add_ie_html5_shim'); /** * customer background color and image support */ add_theme_support( 'custom-background' ); $args = array( 'default-color' => 'FAFAFB', 'default-image' => '', ); add_theme_support( 'custom-background', $args ); function amp_widgets_init() { register_sidebar(array( 'name' => __('Primary Footer Widget Right Side', 'amp'), 'id' => 'sidebar', 'description' => __('The main footer widget area', 'amp'), 'before_widget' => '
', 'before_title' => '