'f2f2f2', ); add_theme_support( 'custom-background', $args ); // HTML5 FTW. add_theme_support( 'html5', array( 'comment-list', 'search-form', 'comment-form' ) ); register_nav_menu( 'top_menu', __( 'Top Menu', 'bexley' ) ); } /** * Initialise widgets */ function bexley_widgets_init() { // Sidebar. register_sidebar( array( 'name' => __( 'Sidebar Widgets', 'bexley' ), 'id' => 'sidebar-1', 'description' => __( 'Widgets that display on the side of your website. Keep this empty to remove the sidebar.', 'bexley' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // Footer. register_sidebar( array( 'name' => __( 'Footer Widgets', 'bexley' ), 'id' => 'sidebar-2', 'description' => __( 'Widgets that display at the bottom of the website.', 'bexley' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'bexley_widgets_init' ); /** * Change the excerpt more link * * @param type $more * @return type */ function bexley_excerptmore( $more ) { return '... ' . esc_html__( 'Read More', 'bexley' ) . ''; } /** * Custom excerpt length * * @param type $length * @return int */ function bexley_excerpt_length( $length ) { return 40; } /** * Add an id to menus so we can target them directly. * * @param type $ulclass * @return type */ function bexley_add_menu_class( $ulclass ) { return preg_replace( '/