'header.style-one a.navbar-brand img, .vertical-navbar-brand img',
'property' => 'width',
'value' => $logo_width. '!important'
);
}
if(!empty($logo_height)){
$babyme_dynamic_css[] = array(
'elements' => 'header.style-one a.navbar-brand img, .vertical-navbar-brand img',
'property' => 'height',
'value' => $logo_height. '!important'
);
}
if(!empty($vertical_logo_width)){
$babyme_dynamic_css[] = array(
'elements' => 'header.style-vertical a.navbar-brand img',
'property' => 'width',
'value' => $vertical_logo_width. '!important'
);
}
if(!empty($vertical_logo_height)){
$babyme_dynamic_css[] = array(
'elements' => 'header.style-vertical a.navbar-brand img',
'property' => 'height',
'value' => $vertical_logo_height. '!important'
);
}
if(!empty($loader_width)){
$babyme_dynamic_css[] = array(
'elements' => '#loading img',
'property' => 'width',
'value' => $loader_width. '!important'
);
}
if(!empty($loader_height)){
$babyme_dynamic_css[] = array(
'elements' => '#loading img',
'property' => 'height',
'value' => $loader_height. '!important'
);
}
if(!empty($iq_option['header_radio']) && $iq_option['header_radio'] == 1 ){
if(!empty($header_font_family)){
$babyme_dynamic_css[] = array(
'elements' => 'h1',
'property' => 'font-family',
'value' => $header_font_family. '!important'
);
}
if(!empty($header_font_size)){
$babyme_dynamic_css[] = array(
'elements' => 'h1',
'property' => 'font-size',
'value' => $header_font_size. '!important'
);
}
if(!empty($header_font_weight)){
$babyme_dynamic_css[] = array(
'elements' => 'h1',
'property' => 'font-weight',
'value' => $header_font_weight. '!important'
);
}
}
// Change font 1
if( isset($iq_option['iq_change_font']) && $iq_option['iq_change_font'] == 1 ){
// body
$babyme_dynamic_css[] = array(
'elements' => 'body',
'property' => 'font-family',
'value' => $body_family. $body_backup. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'body',
'property' => 'font-size',
'value' => $body_size. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'body',
'property' => 'font-weight',
'value' => $body_weight. '!important'
);
// h2 menu
$babyme_dynamic_css[] = array(
'elements' => 'h1',
'property' => 'font-family',
'value' => $h1_family. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h1',
'property' => 'font-size',
'value' => $h1_size. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h1',
'property' => 'font-weight',
'value' => $h1_weight. '!important'
);
// h2 menu
$babyme_dynamic_css[] = array(
'elements' => 'h2',
'property' => 'font-family',
'value' => $h2_family. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h2',
'property' => 'font-size',
'value' => $h2_size. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h2',
'property' => 'font-weight',
'value' => $h2_weight. '!important'
);
// h3 menu
$babyme_dynamic_css[] = array(
'elements' => 'h3',
'property' => 'font-family',
'value' => $h3_family. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h3',
'property' => 'font-size',
'value' => $h3_size. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h3',
'property' => 'font-weight',
'value' => $h3_weight. '!important'
);
// h4 menu
$babyme_dynamic_css[] = array(
'elements' => 'h4',
'property' => 'font-family',
'value' => $h4_family. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h4',
'property' => 'font-size',
'value' => $h4_size. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h4',
'property' => 'font-weight',
'value' => $h4_weight. '!important'
);
// h5 menu
$babyme_dynamic_css[] = array(
'elements' => 'h5',
'property' => 'font-family',
'value' => $h5_family. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h5',
'property' => 'font-size',
'value' => $h5_size. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h5',
'property' => 'font-weight',
'value' => $h5_weight. '!important'
);
// h6 menu
$babyme_dynamic_css[] = array(
'elements' => 'h6',
'property' => 'font-family',
'value' => $h6_family. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h6',
'property' => 'font-size',
'value' => $h6_size. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => 'h6',
'property' => 'font-weight',
'value' => $h6_weight. '!important'
);
}
// }
// Start generating if related arrays are populated
if ( count( $babyme_dynamic_css ) > 0 ) {
echo "';
}
}
}
add_action( 'wp_head', 'babyme_create_dynamic_style' );
if ( !function_exists( 'babyme_create_dynamic_style' ) ) {
function babyme_create_dynamic_style() {
$babyme_dynamic_css = array();
$babyme_dynamic_css_min_width_1200px = array();
$iq_option = get_option('babyme_options');
$loader_width = '';
$loader_height = '';
if(!empty($iq_option["logo-dimensions"]["width"])) { $logo_width = $iq_option["logo-dimensions"]["width"]; }
if(!empty($iq_option["logo-dimensions"]["height"])) { $logo_height = $iq_option["logo-dimensions"]["height"]; }
if(!empty($iq_option["loader-dimensions"]["width"])) { $loader_width = $iq_option["loader-dimensions"]["width"]; }
if(!empty($iq_option["loader-dimensions"]["height"])) { $loader_height = $iq_option["loader-dimensions"]["height"]; }
$babyme_dynamic_css[] = array(
'elements' => '.navbar-brand img, .vertical-navbar-brand img',
'property' => 'width',
'value' => $logo_width. '!important'
);
$babyme_dynamic_css[] = array(
'elements' => '.navbar-brand img, .vertical-navbar-brand img',
'property' => 'height',
'value' => $logo_height. '!important'
);
// Start generating if related arrays are populated
if ( count( $babyme_dynamic_css ) > 0 ) {
echo "';
}
}
}
add_action( 'wp_head', 'babyme_create_dynamic_style' );