: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
.herald-responsive-header,
.herald-responsive-header .herald-menu-popup-search .fa{
color: <?php echo esc_attr( $color_header_responsive_txt ); ?>;
background: <?php echo esc_attr( $color_header_responsive_bg ); ?>;
.herald-responsive-header a{
color: <?php echo esc_attr( $color_header_responsive_txt ); ?>;
color: <?php echo esc_attr( $color_header_responsive_txt ); ?>;
.herald-mobile-nav .herald-mega-menu.herald-mega-menu-classic>.sub-menu>li>a{
border-bottom: 1px solid <?php echo herald_hex2rgba($color_header_responsive_txt, 0.15); ?>;
border-right: 1px solid <?php echo herald_hex2rgba($color_header_responsive_txt, 0.15); ?>;
.herald-mobile-nav li a:hover{
background-color: <?php echo esc_attr( $color_header_responsive_acc ); ?>;
color: <?php echo esc_attr( $color_header_middle_txt ); ?>;
border-color: <?php echo herald_hex2rgba($color_header_responsive_txt, 0.15); ?>;
color: <?php echo esc_attr( $color_content_bg ); ?>;
background-color: <?php echo esc_attr( $color_content_title ); ?>;
background-color: <?php echo esc_attr( $color_content_acc ); ?>;
.herald-responsive-header .herald-menu-popup > span,
.herald-responsive-header .herald-search-active > span{
color: <?php echo esc_attr( $color_header_responsive_txt ); ?>;
.herald-responsive-header .herald-menu-popup-search .herald-in-popup{
background: <?php echo esc_attr( $color_content_bg ); ?>;
.herald-responsive-header .herald-search-input,
.herald-responsive-header .herald-menu-popup-search .herald-search-submit{
color: <?php echo esc_attr( $color_content_txt ); ?>;
<?php if( herald_is_woocommerce_active() ) : ?>
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce div.product form.cart .button,
body.woocommerce .button,
body.woocommerce .button:hover,
body.woocommerce-page .button,
body.woocommerce-page .button:hover,
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle,
.woocommerce a.button.alt,
.woocommerce a.button.alt:hover,
.woocommerce-checkout #place_order,
.woocommerce .widget_shopping_cart_content .buttons .button,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit:hover{
background-color: <?php echo esc_attr( $color_content_acc ); ?>;
border-top: 1px solid <?php echo herald_hex2rgba( $color_content_title , 0.1); ?>;
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{
border-bottom: 2px solid <?php echo esc_attr( $color_content_acc ); ?>;
.woocommerce-cart table.cart td.actions .coupon .input-text{
border-color: <?php echo herald_hex2rgba( $color_content_title , 0.1); ?>;
.woocommerce table.shop_table tbody:first-child tr:first-child td,
.woocommerce table.shop_table tbody:first-child tr:first-child th{
border-top: 1px solid <?php echo herald_hex2rgba( $color_content_title , 0.1); ?>;
.woocommerce-cart .cart_item td{
border-bottom: 1px solid <?php echo herald_hex2rgba( $color_content_title , 0.1); ?> !important;
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current{
background-color:<?php echo esc_attr( $color_content_acc ); ?>;
.woocommerce .woocommerce-breadcrumb a,
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count,
color: <?php echo esc_attr( $color_content_meta ); ?>;
.woocommerce .woocommerce-breadcrumb a:hover{
color: <?php echo esc_attr( $color_content_acc ); ?>;
<?php if ( herald_is_bbpress_active() ) : ?>
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer{
color: <?php echo esc_attr( $color_content_bg ); ?>;
background-color: <?php echo esc_attr( $color_content_title ); ?>;
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink{
font-family: <?php echo wp_kses_post( $h_font['font-family'] ); ?>;
font-weight: <?php echo esc_attr( $h_font['font-weight'] ); ?>;
<?php if ( isset( $h_font['font-style'] ) && !empty( $h_font['font-style'] ) ):?>
font-style: <?php echo esc_attr( $h_font['font-style'] ); ?>;
color: <?php echo esc_attr( $color_content_title ); ?>;
#bbpress-forums .bbp-topic-started-by,
#bbpress-forums .bbp-forum-info .bbp-forum-content,
#bbpress-forums p.bbp-topic-meta,
#bbpress-forums li.bbp-forum a,
.widget_display_replies div,
.widget_display_topics div{
color: <?php echo esc_attr( $color_content_meta ); ?>;
#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-permalink:hover,
.bbp-topic-freshness a:hover,
.bbp-forum-freshness a:hover,
span.bbp-admin-links a:hover,
.bbp-reply-post-date:hover,
#bbpress-forums li.bbp-forum a:hover{
color: <?php echo esc_attr( $color_content_acc ); ?>;
background-color: <?php echo herald_hex2rgba($color_content_txt, 0.06); ?>;
border: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.15); ?>;
div.bbp-submit-wrapper button,
#bbpress-forums #bbp-your-profile fieldset.submit button{
background-color: <?php echo esc_attr( $color_content_acc ); ?>;
.bbp-pagination-links a:hover,
.bbp-pagination-links span.current{
background-color:<?php echo esc_attr( $color_content_acc ); ?>;
#bbpress-forums textarea{
border: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.2); ?> !important;
.bbp_widget_login .logout-link{
border: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.2); ?>;
color: <?php echo esc_attr( $color_content_txt ); ?>;
.bbp_widget_login .logout-link:hover{
border: 1px solid <?php echo herald_hex2rgba($color_content_acc, 0.5); ?>;
/* Co Authors Plus Plugin */
<?php if ( herald_is_co_authors_active() ) : ?>
.entry-meta-wrapper .meta-item.herald-author:hover .coauthors a {
color: <?php echo esc_attr( $color_content_txt ); ?>
.entry-meta-wrapper .meta-item.herald-author .coauthors a:hover {
color: <?php echo esc_attr( $color_content_acc ); ?>
/* Generate css for category colors */
$cat_colors = get_option( 'herald_cat_colors' );
if ( !empty( $cat_colors ) ) {
foreach ( $cat_colors as $cat => $color ) {
echo 'a.herald-cat-'.$cat.' , .widget a.herald-cat-'.$cat.'{ color: '.$color.';}';
echo '.herald-mod-head.herald-cat-'.$cat.':after{ background:'.$color.'; }';
echo '.herald-mod-head.herald-cat-'.$cat.' .herald-color { background:'.$color.'; }';
echo '.herald-ovrld .meta-category a.herald-cat-'.$cat.'{ background-color: '.$color.'; color: #FFF;}';
echo '.widget_categories .cat-item-'.$cat.' .count { background-color: '.$color.';}';
echo '.herald-fa-colored .herald-cat-'.$cat.' .fa-post-thumbnail:before { background-color: '.$color.';}';
echo '.herald-fa-wrapper .meta-category .herald-cat-'.$cat.' { background-color: '.$color.';}';
echo '.widget_categories .cat-item-'.$cat.' a:hover { color: '.$color.';}';
echo '.herald-site-footer .widget a.herald-cat-'.$cat.' { color: '.$color.';}';
echo 'li.herald-mega-menu .sub-menu a.herald-cat-'.$cat.' { color: '.$color.';}';
/* Apply uppercase options */
$uppercase = herald_get_option( 'uppercase' );
if ( !empty( $uppercase ) ) {
foreach ( $uppercase as $text_class => $val ) {
echo '.'. $text_class .'{text-transform: uppercase;}';
echo '.'. $text_class .'{text-transform: none;}';
$font_sizes = herald_get_editor_font_sizes();
if ( !empty( $font_sizes ) ) {
foreach ( $font_sizes as $id => $item ) {
if( isset( $item['size-mobile'] ) ){
echo '.has-'. $item['slug'] .'-font-size{ font-size: '.number_format( $item['size-mobile'] / 10, 1 ) .'rem;}';
echo '@media(min-width: 1025px){';
foreach ( $font_sizes as $id => $item ) {
echo '.has-'. $item['slug'] .'-font-size{ font-size: '.number_format( $item['size'] / 10, 1 ) .'rem;}';
$colors = herald_get_editor_colors();
if ( !empty( $colors ) ) {
foreach ( $colors as $id => $item ) {
echo '.has-'. $item['slug'] .'-background-color{ background-color: ' . esc_attr( $item['color'] ) .';}';
echo '.has-'. $item['slug'] .'-color{ color: ' . esc_attr( $item['color'] ) .';}';
$overlay_opacity = herald_get_option('overlay_opacity');
echo '.fa-post-thumbnail:before, .herald-ovrld .herald-post-thumbnail span:before, .herald-ovrld .herald-post-thumbnail a:before { opacity: '.esc_attr($overlay_opacity[1]).'; }';
echo '.herald-fa-item:hover .fa-post-thumbnail:before, .herald-ovrld:hover .herald-post-thumbnail a:before, .herald-ovrld:hover .herald-post-thumbnail span:before{ opacity: '.esc_attr($overlay_opacity[2]).'; }';
/* Responsive header brekpoint */
@media only screen and (min-width: <?php echo esc_attr( $header_responsive_breakpoint ); ?>px) {
.herald-site-header .header-top,
.header-trending{ display:block !important;}
.herald-responsive-header,.herald-mobile-nav{display:none !important;}
margin-top: 0 !important;
.herald-mega-menu .sub-menu {