posts ) ) return; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } add_action( 'wp', 'custom_paged_404_fix' ); /** * Add a html5 shiv for older browsers. */ function bardous_html5shiv() { ?> add_section( 'theme_options_section', array( 'title' => __( 'Theme Options', 'bardous' ), 'priority' => 129, ) ); $wp_customize->add_setting( 'infinite_scroll', array( 'default' => '1', 'transport' => 'refresh', 'sanitize_callback' => 'example_sanitize_text', ) ); $wp_customize->add_control( 'infinite_scroll', array( 'label' => __( 'Infinite Scroll', 'bardous' ), 'description' => __( 'Turn infinite scroll on.', 'bardous' ), 'section' => 'theme_options_section', 'type' => 'checkbox', ) ); $wp_customize->add_section( 'theme_colors_section', array( 'title' => __( 'Theme Colors', 'bardous' ), 'priority' => 129, ) ); $wp_customize->add_setting( 'theme_color', array( 'default' => '#000000', 'sanitize_callback' => 'example_sanitize_text', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'theme_color', array( 'label' => __( 'Theme Colors', 'bardous' ), 'description' => __( 'Select a base theme color.', 'bardous' ), 'section' => 'theme_colors_section', 'settings' => 'theme_color' )) ); $wp_customize->add_setting( 'theme_hover_color', array( 'default' => '#000000', 'transport' => 'postMessage', 'sanitize_callback' => 'example_sanitize_text', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'theme_hover_color', array( 'description' => __( 'Select a secondary theme color.', 'bardous' ), 'section' => 'theme_colors_section', 'settings' => 'theme_hover_color' )) ); } add_action( 'customize_register', 'theme_options_customizer' ); /** * Add theme color to wp_head. */ function theme_customizer_css() { ?>