child theme readyness

This commit is contained in:
Holger Koenemann 2014-12-19 15:30:25 +01:00
parent 781359bb69
commit 79930d873d
5 changed files with 7 additions and 31 deletions

File diff suppressed because one or more lines are too long

View File

@ -14,28 +14,7 @@ function understrap_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
$wp_customize->add_section( 'themename_color_scheme', array(
'title' => __( 'Header Settings', 'understrap' ),
'priority' => 35,
) );
$wp_customize->add_setting( 'themename_theme_options[color_scheme]', array(
'default' => 'some-default-value',
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'themename_color_scheme', array(
'label' => __( 'Activate Header', 'understrap' ),
'section' => 'themename_color_scheme',
'settings' => 'themename_theme_options[color_scheme]',
'type' => 'radio',
'choices' => array(
'value1' => 'Off',
'value2' => 'On all pages',
'value3' => 'On Frontpage only',
),
) );
}
add_action( 'customize_register', 'understrap_customize_register' );

View File

@ -3,9 +3,6 @@
function understrap_scripts() {
wp_enqueue_style( 'understrap-theme', get_stylesheet_directory_uri() . '/css/theme.css', array(), '0.1', false );
wp_enqueue_script('jquery');
wp_enqueue_script( 'understrap-navigation', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '20120206', true );
@ -16,12 +13,12 @@ function understrap_scripts() {
}
if ( is_active_sidebar( 'hero' ) ) {
wp_enqueue_style( 'understrap-carousel-style', get_stylesheet_directory_uri() . '/css/owl.carousel.css', array(), '20024', false );
wp_enqueue_style( 'understrap-carousel-style', get_template_directory_uri() . '/css/owl.carousel.css', array(), '20024', false );
wp_enqueue_script( 'understrap-carousel-script', get_template_directory_uri() . '/js/owl.carousel.min.js', array(), '20024', true );}
}
if ( is_active_sidebar( 'off-canvas' ) ) {
wp_enqueue_style('understrap-off-canvas-style', get_stylesheet_directory_uri() . '/css/jasny-bootstrap.min.css', array(), '310', false);
wp_enqueue_style('understrap-off-canvas-style', get_template_directory_uri() . '/css/jasny-bootstrap.min.css', array(), '310', false);
wp_enqueue_script('understrap-off-canvas-script', get_template_directory_uri() . '/js/jasny-bootstrap.min.js', array(), '310', true);
}

File diff suppressed because one or more lines are too long

View File

@ -11,9 +11,9 @@ font-size:inherit;
}
//Jasny Off-Canvas menu fixed right problems workaround
// .navmenu-fixed-right {
// left: auto !important;
// }
.navmenu-fixed-right {
left: auto !important;
}
// AdditionL Off-Canvas styling
.off-canvas-toggle-link{