: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
$main_font = herald_get_font_option( 'main_font' );
$h_font = herald_get_font_option( 'h_font' );
$nav_font = herald_get_font_option( 'nav_font' );
$font_size_p = number_format( absint( herald_get_option( 'font_size_p' ) ) / 10, 1 );
$font_size_excerpt_text = number_format( absint( herald_get_option( 'font_size_excerpt_text' ) ) / 10, 1 );
$font_size_meta_data_smaller = number_format( absint( herald_get_option( 'font_size_meta_data_smaller' ) ) / 10, 1 );
$font_size_meta_data_bigger = number_format( absint( herald_get_option( 'font_size_meta_data_bigger' ) ) / 10, 1 );
$font_size_h1 = number_format( absint( herald_get_option( 'font_size_h1' ) ) / 10, 1 );
$font_size_h2 = number_format( absint( herald_get_option( 'font_size_h2' ) ) / 10, 1 );
$font_size_h3 = number_format( absint( herald_get_option( 'font_size_h3' ) ) / 10, 1 );
$font_size_h4 = number_format( absint( herald_get_option( 'font_size_h4' ) ) / 10, 1 );
$font_size_h5 = number_format( absint( herald_get_option( 'font_size_h5' ) ) / 10, 1 );
$font_size_h6 = number_format( absint( herald_get_option( 'font_size_h6' ) ) / 10, 1 );
$font_size_h7 = number_format( absint( herald_get_option( 'font_size_h7' ) ) / 10, 1 );
$font_size_small = number_format( absint( herald_get_option( 'font_size_small' ) ) / 10, 1 );
$font_size_nav = number_format( absint( herald_get_option( 'font_size_nav' ) ) / 10, 1 );
$font_size_widget_and_module_title= number_format( absint( herald_get_option( 'font_size_widget_and_module_title' ) ) / 10, 1 );
$color_header_top_bg = esc_attr(herald_get_option( 'color_header_top_bg' ));
$color_header_top_txt = esc_attr(herald_get_option( 'color_header_top_txt' ));
$color_header_top_acc = esc_attr(herald_get_option( 'color_header_top_acc' ));
/* Middle header styles */
$color_header_middle_bg = esc_attr(herald_get_option( 'color_header_middle_bg' ));
$color_header_middle_txt = esc_attr(herald_get_option( 'color_header_middle_txt' ));
$color_header_middle_acc = esc_attr(herald_get_option( 'color_header_middle_acc' ));
$header_height = esc_attr(herald_get_option( 'header_height' ));
/* Bottom header styles */
$color_header_bottom_bg = esc_attr(herald_get_option( 'color_header_bottom_bg' ));
$color_header_bottom_txt = esc_attr(herald_get_option( 'color_header_bottom_txt' ));
$color_header_bottom_acc = esc_attr(herald_get_option( 'color_header_bottom_acc' ));
/* Sticky header styles */
$color_header_sticky_bg = esc_attr(herald_get_option( 'color_header_sticky_bg' ));
$color_header_sticky_txt = esc_attr(herald_get_option( 'color_header_sticky_txt' ));
$color_header_sticky_acc = esc_attr(herald_get_option( 'color_header_sticky_acc' ));
/* Trending header styles */
$color_header_trending_bg = esc_attr(herald_get_option( 'color_header_trending_bg' ));
$color_header_trending_txt = esc_attr(herald_get_option( 'color_header_trending_txt' ));
$color_header_trending_acc = esc_attr(herald_get_option( 'color_header_trending_acc' ));
$header_responsive_breakpoint = esc_attr(herald_get_option( 'header_responsive_breakpoint' ));
$body_background = herald_get_bg_option('body_background');
$content_layout = herald_get_option('content_layout');
$color_content_bg = esc_attr(herald_get_option( 'color_content_bg' ));
$color_content_title = esc_attr(herald_get_option( 'color_content_title' ));
$color_content_txt = esc_attr(herald_get_option( 'color_content_txt' ));
$color_content_acc = esc_attr(herald_get_option( 'color_content_acc' ));
$color_content_meta = esc_attr(herald_get_option( 'color_content_meta' ));
$color_footer_bg = esc_attr(herald_get_option( 'color_footer_bg' ));
$color_footer_acc = esc_attr(herald_get_option( 'color_footer_acc' ));
$color_footer_txt = esc_attr(herald_get_option( 'color_footer_txt' ));
$color_footer_meta = esc_attr(herald_get_option( 'color_footer_meta' ));
h1, .h1, .herald-no-sid .herald-posts .h2{ font-size: <?php echo esc_attr( $font_size_h1 ); ?>rem; }
h2, .h2, .herald-no-sid .herald-posts .h3{ font-size: <?php echo esc_attr( $font_size_h2 ); ?>rem; }
h3, .h3, .herald-no-sid .herald-posts .h4 { font-size: <?php echo esc_attr( $font_size_h3 ); ?>rem; }
h4, .h4, .herald-no-sid .herald-posts .h5 { font-size: <?php echo esc_attr( $font_size_h4 ); ?>rem; }
h5, .h5, .herald-no-sid .herald-posts .h6 { font-size: <?php echo esc_attr( $font_size_h5 ); ?>rem; }
h6, .h6, .herald-no-sid .herald-posts .h7 { font-size: <?php echo esc_attr( $font_size_h6 ); ?>rem; }
font-size: <?php echo esc_attr( $font_size_h7 ); ?>rem;
.herald-entry-content, .herald-sidebar{
font-size: <?php echo esc_attr( $font_size_p ); ?>rem;
.entry-content .entry-headline{
font-size: <?php echo esc_attr( $font_size_excerpt_text ); ?>rem;
font-size: <?php echo esc_attr( $font_size_p ); ?>rem;
font-size: <?php echo esc_attr( $font_size_small ); ?>rem;
font-size: <?php echo esc_attr( $font_size_nav ); ?>rem;
.herald-mod-title .herald-mod-h, .herald-sidebar .widget-title{
font-size: <?php echo esc_attr( $font_size_widget_and_module_title ); ?>rem;
.entry-meta .meta-item, .entry-meta a, .entry-meta span{
font-size: <?php echo esc_attr( $font_size_meta_data_bigger ); ?>rem;
.entry-meta.meta-small .meta-item, .entry-meta.meta-small a, .entry-meta.meta-small span{
font-size: <?php echo esc_attr( $font_size_meta_data_smaller ); ?>rem;
.herald-site-header .header-top,
.header-top .herald-in-popup,
.header-top .herald-menu ul {
background: <?php echo esc_attr( $color_header_top_bg ); ?>;
color: <?php echo esc_attr( $color_header_top_txt ); ?>;
color: <?php echo esc_attr( $color_header_top_txt ); ?>;
.header-top .herald-menu li:hover > a{
color: <?php echo esc_attr( $color_header_top_acc ); ?>;
.header-top .herald-menu-popup:hover > span,
.header-top .herald-menu-popup-search span:hover,
.header-top .herald-menu-popup-search.herald-search-active{
color: <?php echo esc_attr( $color_header_top_acc ); ?>;
background: <?php echo esc_attr( $color_content_acc ); ?>;
.header-top .herald-login #loginform label,
.header-top .herald-login p,
.header-top a.btn-logout {
color: <?php echo esc_attr( $color_header_top_acc ); ?>;
.header-top .herald-login #loginform input {
color: <?php echo esc_attr( $color_header_top_bg ); ?>;
.header-top .herald-login .herald-registration-link:after {
background: <?php echo herald_hex2rgba($color_header_top_acc, 0.25); ?>;
.header-top .herald-login #loginform input[type=submit],
.header-top .herald-in-popup .btn-logout {
background-color: <?php echo esc_attr( $color_header_top_acc ); ?>;
color: <?php echo esc_attr( $color_header_top_bg ); ?>;
.header-top a.btn-logout:hover{
color: <?php echo esc_attr( $color_header_top_bg ); ?>;
/* Middle header styles */
<?php if( $middle_bg = herald_get_bg_option('background_header_middle') ) : ?>
<?php echo wp_kses_post( $middle_bg ); ?>
background-color: <?php echo esc_attr( $color_header_middle_bg ); ?>;
color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
.header-middle.herald-header-wraper,
.header-middle .col-lg-12{
height: <?php echo absint( $header_height ); ?>px;
.header-middle .site-title img{
max-height: <?php echo absint( $header_height ); ?>px;
.header-middle .sub-menu{
background-color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
.header-middle .sub-menu a,
.header-middle .herald-search-submit:hover,
.header-middle li.herald-mega-menu .col-lg-3 a:hover,
.header-middle li.herald-mega-menu .col-lg-3 a:hover:after{
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
.header-middle .herald-menu li:hover > a,
.header-middle .herald-menu-popup-search:hover > span,
.header-middle .herald-cart-icon:hover > a
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
background-color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
.header-middle .current-menu-parent a,
.header-middle .current-menu-ancestor a,
.header-middle .current_page_item > a,
.header-middle .current-menu-item > a{
background-color: <?php echo herald_hex2rgba( $color_header_middle_txt , 0.2); ?>;
.header-middle .sub-menu > li > a,
.header-middle .herald-search-submit,
.header-middle li.herald-mega-menu .col-lg-3 a{
color: <?php echo herald_hex2rgba( $color_header_middle_acc , 0.7); ?>;
.header-middle .sub-menu > li:hover > a{
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
.header-middle .herald-in-popup{
background-color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
.header-middle .herald-menu-popup a{
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
.header-middle .herald-in-popup{
background-color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
.header-middle .herald-search-input{
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
.header-middle .herald-menu-popup a{
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
.header-middle .herald-menu-popup > span,
.header-middle .herald-search-active > span{
color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
.header-middle .herald-menu-popup:hover > span,
.header-middle .herald-search-active > span{
background-color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
.header-middle .herald-login #loginform label,
.header-middle .herald-login #loginform input,
.header-middle .herald-login p,
.header-middle a.btn-logout,
.header-middle .herald-login .herald-registration-link:hover,
.header-middle .herald-login .herald-lost-password-link:hover {
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
.header-middle .herald-login .herald-registration-link:after {
background: <?php echo herald_hex2rgba($color_header_middle_acc, 0.15); ?>;
.header-middle .herald-login a,
.header-middle .herald-username a {
color: <?php echo esc_attr( $color_header_middle_acc ); ?>;
.header-middle .herald-login a:hover,
.header-middle .herald-login .herald-registration-link,
.header-middle .herald-login .herald-lost-password-link {
color: <?php echo esc_attr( $color_header_middle_bg ); ?>;
.header-middle .herald-login #loginform input[type=submit],
.header-middle .herald-in-popup .btn-logout {
background-color: <?php echo esc_attr( $color_header_middle_bg ); ?>;
color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
.header-middle a.btn-logout:hover{
color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
/* Bottom header styles */
background: <?php echo esc_attr( $color_header_bottom_bg ); ?>;
color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
.header-bottom .herald-site-header .herald-search-submit{
color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .herald-menu li:hover > a,
.header-bottom li.herald-mega-menu .col-lg-3 a:hover:after{
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .herald-menu li:hover > a,
.header-bottom .herald-menu-popup-search:hover > span,
.header-bottom .herald-cart-icon:hover > a {
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
background-color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
.header-bottom .current-menu-parent a,
.header-bottom .current-menu-ancestor a,
.header-bottom .current_page_item > a,
.header-bottom .current-menu-item > a {
background-color: <?php echo herald_hex2rgba( $color_header_bottom_txt , 0.2); ?>;
.header-bottom .sub-menu{
background-color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
.header-bottom .herald-menu li.herald-mega-menu .col-lg-3 a,
.header-bottom .sub-menu > li > a,
.header-bottom .herald-search-submit{
color: <?php echo herald_hex2rgba( $color_header_bottom_acc , 0.7); ?>;
.header-bottom .herald-menu li.herald-mega-menu .col-lg-3 a:hover,
.header-bottom .sub-menu > li:hover > a{
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .sub-menu > li > a,
.header-bottom .herald-search-submit{
color: <?php echo herald_hex2rgba( $color_header_bottom_acc , 0.7); ?>;
.header-bottom .sub-menu > li:hover > a{
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .herald-in-popup {
background-color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
.header-bottom .herald-menu-popup a {
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .herald-in-popup,
.header-bottom .herald-search-input {
background-color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
.header-bottom .herald-menu-popup a,
.header-bottom .herald-search-input{
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .herald-menu-popup > span,
.header-bottom .herald-search-active > span{
color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
.header-bottom .herald-menu-popup:hover > span,
.header-bottom .herald-search-active > span{
background-color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .herald-login #loginform label,
.header-bottom .herald-login #loginform input,
.header-bottom .herald-login p,
.header-bottom a.btn-logout,
.header-bottom .herald-login .herald-registration-link:hover,
.header-bottom .herald-login .herald-lost-password-link:hover,
.herald-responsive-header .herald-login #loginform label,
.herald-responsive-header .herald-login #loginform input,
.herald-responsive-header .herald-login p,
.herald-responsive-header a.btn-logout,
.herald-responsive-header .herald-login .herald-registration-link:hover,
.herald-responsive-header .herald-login .herald-lost-password-link:hover {
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .herald-login .herald-registration-link:after,
.herald-responsive-header .herald-login .herald-registration-link:after {
background: <?php echo herald_hex2rgba( $color_header_bottom_acc, 0.15 ); ?>;
.header-bottom .herald-login a,
.herald-responsive-header .herald-login a {
color: <?php echo esc_attr( $color_header_bottom_acc ); ?>;
.header-bottom .herald-login a:hover,
.header-bottom .herald-login .herald-registration-link,
.header-bottom .herald-login .herald-lost-password-link,
.herald-responsive-header .herald-login a:hover,
.herald-responsive-header .herald-login .herald-registration-link,
.herald-responsive-header .herald-login .herald-lost-password-link {
color: <?php echo esc_attr( $color_header_bottom_bg ); ?>;
.header-bottom .herald-login #loginform input[type=submit],
.herald-responsive-header .herald-login #loginform input[type=submit],
.header-bottom .herald-in-popup .btn-logout,
.herald-responsive-header .herald-in-popup .btn-logout {
background-color: <?php echo esc_attr( $color_header_bottom_bg ); ?>;
color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
.header-bottom a.btn-logout:hover,
.herald-responsive-header a.btn-logout:hover {
color: <?php echo esc_attr( $color_header_bottom_txt ); ?>;
/* Sticky header styles */
background: <?php echo esc_attr( $color_header_sticky_bg ); ?>;
color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
.herald-header-sticky .herald-menu li:hover > a{
color: <?php echo esc_attr( $color_header_sticky_acc ); ?>;
background-color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
.herald-header-sticky .sub-menu{
background-color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
.herald-header-sticky .sub-menu a{
color: <?php echo esc_attr( $color_header_sticky_acc ); ?>;
.herald-header-sticky .sub-menu > li:hover > a{
color: <?php echo esc_attr( $color_header_sticky_bg ); ?>;
.herald-header-sticky .herald-in-popup,
.herald-header-sticky .herald-search-input {
background-color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
.herald-header-sticky .herald-menu-popup a{
color: <?php echo esc_attr( $color_header_sticky_acc ); ?>;
.herald-header-sticky .herald-menu-popup > span,
.herald-header-sticky .herald-search-active > span{
color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
.herald-header-sticky .herald-menu-popup:hover > span,
.herald-header-sticky .herald-search-active > span{
background-color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
color: <?php echo esc_attr( $color_header_sticky_acc ); ?>;
.herald-header-sticky .herald-search-input,
.herald-header-sticky .herald-search-submit{
color: <?php echo esc_attr( $color_header_sticky_acc ); ?>;
.herald-header-sticky .herald-menu li:hover > a,
.herald-header-sticky .herald-menu-popup-search:hover > span,
.herald-header-sticky .herald-cart-icon:hover a {
color: <?php echo esc_attr( $color_header_sticky_acc ); ?>;
background-color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
.herald-header-sticky .herald-login #loginform label,
.herald-header-sticky .herald-login #loginform input,
.herald-header-sticky .herald-login p,
.herald-header-sticky a.btn-logout,
.herald-header-sticky .herald-login .herald-registration-link:hover,
.herald-header-sticky .herald-login .herald-lost-password-link:hover {
color: <?php echo esc_attr( $color_header_sticky_acc ); ?>;
.herald-header-sticky .herald-login .herald-registration-link:after {
background: <?php echo herald_hex2rgba( $color_header_sticky_acc, 0.15 ); ?>;
.herald-header-sticky .herald-login a {
color: <?php echo esc_attr( $color_header_sticky_acc ); ?>;
.herald-header-sticky .herald-login a:hover,
.herald-header-sticky .herald-login .herald-registration-link,
.herald-header-sticky .herald-login .herald-lost-password-link {
color: <?php echo esc_attr( $color_header_sticky_bg ); ?>;
.herald-header-sticky .herald-login #loginform input[type=submit],
.herald-header-sticky .herald-in-popup .btn-logout {
background-color: <?php echo esc_attr( $color_header_sticky_bg ); ?>;
color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
.herald-header-sticky a.btn-logout:hover{
color: <?php echo esc_attr( $color_header_sticky_txt ); ?>;
background: <?php echo esc_attr( $color_header_trending_bg ); ?>;
color: <?php echo esc_attr( $color_header_trending_txt ); ?>;
color: <?php echo esc_attr( $color_header_trending_txt ); ?>;
.header-trending a:hover{
color: <?php echo esc_attr( $color_header_trending_acc ); ?>;
/* Dynamic border smart :) */
$header_sections = array_keys( array_filter( herald_get_option('header_sections') ) );
if(!empty($header_sections)) {
foreach($header_sections as $i => $section ){
$bg1 = herald_get_option('color_header_'.$section.'_bg');
$bg2 = herald_get_option('color_header_'.$prev.'_bg');
echo '.header-'.$section.'{ border-top: 1px solid '.herald_hex2rgba(herald_get_option('color_header_'.$section.'_txt'), 0.15).';}';
if( ($i + 1) == count( $header_sections )){
$last_bg = herald_get_option('color_header_'.$section.'_bg');
if( $last_bg == $color_content_bg ){
echo '.header-'.$section.'{ border-bottom: 1px solid '.herald_hex2rgba(herald_get_option('color_header_'.$section.'_txt'), 0.15).';}';
if( $content_layout == 'boxed' ){