__( 'Primary Menu', 'adler' ), 'footer' => __( 'Footer Menu', 'adler' ) ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * Add editor custom style to make it look more like the frontend * Also enqueue the custom Google Fonts also */ add_editor_style( array( 'editor-style.css', adler_fonts_url() ) ); $defaults = array( 'default-color' => '#FFF' ); add_theme_support( 'custom-background', $defaults ); } endif; // adler_setup add_action( 'after_setup_theme', 'adler_setup' ); /** * Enqueue scripts and styles. */ function adler_scripts() { //FontAwesome Stylesheet wp_enqueue_style( 'adler-font-awesome-style', get_stylesheet_directory_uri() . '/assets/css/font-awesome.css', array(), '4.3.0' ); wp_enqueue_style( 'adler-style', get_stylesheet_uri(), array('adler-font-awesome-style') ); wp_enqueue_script( 'adler-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20120206', true ); wp_enqueue_script( 'adler-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } //Default Fonts wp_enqueue_style( 'adler-fonts', adler_fonts_url(), array(), null ); } add_action( 'wp_enqueue_scripts', 'adler_scripts' ); //Registering Sidebar function adler_widgets_init() { register_sidebar( array( 'name' => __( 'Footer Area', 'adler' ), 'id' => 'footer-area', 'description' => __( 'Widgets in this area will be shown in the footer of the page.', 'adler' ), 'before_widget' => '