: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
$body_styles = herald_get_option('body_background');
$body_bg = isset($body_styles['background-color']) ? $body_styles['background-color'] : false;
if( $last_bg == $body_bg ){
echo '.herald-site-content { margin-top: 1px; }';
<?php if( $content_layout == 'boxed') : ?>
<?php echo wp_kses_post( $body_background ); ?>
background-color: <?php echo esc_attr( $color_content_bg ); ?>;
color: <?php echo esc_attr( $color_content_txt ); ?>;
font-family: <?php echo wp_kses_post( $main_font['font-family'] ); ?>;
font-weight: <?php echo esc_attr( $main_font['font-weight'] ); ?>;
<?php if ( isset( $main_font['font-style'] ) && !empty( $main_font['font-style'] ) ):?>
font-style: <?php echo esc_attr( $main_font['font-style'] ); ?>;
background-color: <?php echo esc_attr( $color_content_bg ); ?>;
<?php if( $content_layout == 'boxed') : ?>
box-shadow: 0 0 0 1px <?php echo herald_hex2rgba( $color_content_txt, 0.1); ?>;
.h1, .h2, .h3, .h4, .h5, .h6, .h7,
.wp-block-cover .wp-block-cover-image-text, .wp-block-cover .wp-block-cover-text,
.wp-block-cover h2, .wp-block-cover-image .wp-block-cover-image-text,
.wp-block-cover-image .wp-block-cover-text, .wp-block-cover-image h2{
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'] ) ?>;
.header-middle .herald-menu,
.header-bottom .herald-menu,
.herald-header-sticky .herald-menu,
font-family: <?php echo wp_kses_post( $nav_font['font-family'] ); ?>;
font-weight: <?php echo esc_attr( $nav_font['font-weight'] ); ?>;
<?php if ( isset( $nav_font['font-style'] ) && !empty( $nav_font['font-style'] ) ):?>
font-style: <?php echo esc_attr( $nav_font['font-style'] ); ?>;
.herald-menu li.herald-mega-menu .herald-ovrld .meta-category a{
font-family: <?php echo wp_kses_post( $main_font['font-family'] ); ?>;
font-weight: <?php echo esc_attr( $main_font['font-weight'] ); ?>;
<?php if ( isset( $main_font['font-style'] ) && !empty( $main_font['font-style'] ) ):?>
font-style: <?php echo esc_attr( $main_font['font-style'] ); ?>;
.herald-entry-content blockquote p{
color: <?php echo esc_attr( $color_content_acc ); ?>;
background: <?php echo herald_hex2rgba( $color_content_txt , 0.06); ?>;
border: 1px solid <?php echo herald_hex2rgba( $color_content_txt , 0.2); ?>;
background: <?php echo herald_hex2rgba( $color_content_txt , 0.06); ?>;
.herald-menu .sub-menu li .meta-category a{
color: <?php echo esc_attr( $color_content_acc ); ?>;
.entry-meta-wrapper .entry-meta span:before,
.entry-meta-wrapper .entry-meta a:before,
.entry-meta-wrapper .entry-meta .meta-item:before,
.entry-meta-wrapper .entry-meta div,
li.herald-mega-menu .sub-menu .entry-title a,
.entry-meta-wrapper .herald-author-twitter{
color: <?php echo esc_attr( $color_content_txt ); ?>;
color: <?php echo esc_attr( $color_content_bg ); ?>;
.herald-mod-title .herald-color,
color: <?php echo esc_attr( $color_content_bg ); ?>;
background-color: <?php echo esc_attr( $color_content_title ); ?>;
.herald-mod-title .herald-color a{
color: <?php echo esc_attr( $color_content_bg ); ?>;
.herald-ovrld .meta-category a,
.herald-fa-wrapper .meta-category a{
background-color: <?php echo esc_attr( $color_content_acc ); ?>;
.herald-share-meta:after,
background: <?php echo herald_hex2rgba( $color_content_title , 0.1); ?>;
color: <?php echo esc_attr( $color_content_title ); ?>;
.herald-pagination .page-numbers,
.herald-slider-controls div,
.widget.widget_tag_cloud a,
.herald-sidebar .mks_autor_link_wrap a,
.herald-sidebar .meks-instagram-follow-link a,
.mks_themeforest_widget .mks_read_more a,
color: <?php echo esc_attr( $color_content_txt ); ?>;
.widget.widget_tag_cloud a:hover,
.entry-content .meta-tags a:hover,
.wp-block-tag-cloud a:hover{
background-color: <?php echo esc_attr( $color_content_acc ); ?>;
.herald-pagination .prev.page-numbers,
.herald-pagination .next.page-numbers,
.herald-pagination .prev.page-numbers:hover,
.herald-pagination .next.page-numbers:hover,
.herald-pagination .page-numbers.current,
.herald-pagination .page-numbers.current:hover,
.herald-pagination .herald-next a:hover,
.herald-pagination .herald-prev a:hover,
.herald-load-more a:hover,
.entry-content .herald-search-submit,
.herald-mod-desc .herald-search-submit,
body div.wpforms-container-full .wpforms-form input[type=submit],
body div.wpforms-container-full .wpforms-form button[type=submit],
body div.wpforms-container-full .wpforms-form .wpforms-page-button {
background-color:<?php echo esc_attr( $color_content_acc ); ?>;
.herald-pagination .page-numbers:hover{
background-color: <?php echo herald_hex2rgba( $color_content_txt , 0.1); ?>;
.herald-sticky-next a:hover,
.herald-sticky-prev a:hover,
.herald-mod-subnav a:hover,
.herald-mod-actions a:hover,
.herald-slider-controls div:hover,
.widget_tag_cloud a:hover,
.mks_autor_link_wrap a:hover,
.meks-instagram-follow-link a:hover,
.mks_themeforest_widget .mks_read_more a:hover,
.widget .entry-title a:hover,
li.herald-mega-menu .sub-menu .entry-title a:hover,
.entry-meta-wrapper .meta-item:hover a,
.entry-meta-wrapper .meta-item:hover a:before,
.entry-meta-wrapper .herald-share:hover > span,
.entry-meta-wrapper .herald-author-name:hover,
.entry-meta-wrapper .herald-author-twitter:hover,
.entry-meta-wrapper .herald-author-twitter:hover:before{
color:<?php echo esc_attr( $color_content_acc ); ?>;
.entry-meta-wrapper .meta-item,
.entry-meta-wrapper .meta-item span,
.entry-meta-wrapper .meta-item a,
color: <?php echo esc_attr( $color_content_txt ); ?>;
background: <?php echo herald_hex2rgba( $color_content_txt , 0.3); ?>;
.widget_categories .count{
background: <?php echo esc_attr( $color_content_acc ); ?>;
body div.wpforms-container-full .wpforms-form input[type=submit]:hover,
body div.wpforms-container-full .wpforms-form button[type=submit]:hover,
body div.wpforms-container-full .wpforms-form .wpforms-page-button:hover,
background-color: <?php echo esc_attr( $color_content_acc ); ?>;
.herald-mod-actions a:hover,
.comment-body .edit-link a,
.herald-breadcrumbs a:hover{
color:<?php echo esc_attr( $color_content_acc ); ?>;
.herald-header-wraper .herald-soc-nav a:hover,
li.herald-mega-menu .herald-ovrld .entry-title a,
li.herald-mega-menu .herald-ovrld .entry-title a:hover,
.herald-ovrld .entry-meta .herald-reviews i:before{
.herald-menu li.herald-mega-menu .col-lg-3 a:after,
.entry-meta .herald-reviews i:before{
color: <?php echo esc_attr( $color_content_meta ); ?>;
.herald-lay-a .herald-lay-over{
background: <?php echo esc_attr( $color_content_bg ); ?>;
.herald-pagination a:hover,
input[type="submit"]:hover,
.entry-content .herald-search-submit:hover,
.herald-fa-wrapper .meta-category a:hover,
.herald-ovrld .meta-category a:hover,
.herald-mod-desc .herald-search-submit:hover,
.herald-single-sticky .herald-share .meks_ess a:hover,
body div.wpforms-container-full .wpforms-form input[type=submit]:hover,
body div.wpforms-container-full .wpforms-form button[type=submit]:hover,
body div.wpforms-container-full .wpforms-form .wpforms-page-button:hover{
background-image: -moz-linear-gradient(left,rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.1) 100%);
background-image: -webkit-gradient(linear,left top,right top,color-stop(0%,rgba(0,0,0,0.1)),color-stop(100%,rgba(0,0,0,0.1)));
background-image: -webkit-linear-gradient(left,rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.1) 100%);
background-image: -o-linear-gradient(left,rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.1) 100%);
background-image: -ms-linear-gradient(left,rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.1) 100%);
background-image: linear-gradient(to right,rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.1) 100%);
color: <?php echo esc_attr( $color_content_txt ); ?>;
.herald-sticky-prev a:before,
.herald-sticky-next a:before,
.herald-entry-content .herald-link-pages a{
background: <?php echo esc_attr( $color_content_txt ); ?>;
.herald-sticky-prev a:hover:before,
.herald-sticky-next a:hover:before,
.herald-comment-action:hover,
div.mejs-controls .mejs-time-rail .mejs-time-current,
.herald-entry-content .herald-link-pages a:hover{
background: <?php echo esc_attr( $color_content_acc ); ?>;
background: <?php echo esc_attr( $color_footer_bg ); ?>;
color: <?php echo esc_attr( $color_footer_txt ); ?>;
.herald-site-footer .widget-title span{
color: <?php echo esc_attr( $color_footer_txt ); ?>;
.herald-site-footer .widget-title:before{
background:<?php echo esc_attr( $color_footer_txt ); ?>;
.herald-site-footer .widget-title:after,
.herald-site-footer .widget_tag_cloud a{
background: <?php echo herald_hex2rgba($color_footer_txt, 0.1); ?>;
.herald-site-footer .widget li:before{
background: <?php echo herald_hex2rgba($color_footer_txt, 0.3); ?>;
.herald-site-footer .widget a:hover,
.herald-site-footer .widget .meta-category a,
.herald-site-footer .herald-slider-controls .owl-prev:hover,
.herald-site-footer .herald-slider-controls .owl-next:hover,
.herald-site-footer .herald-slider-controls .herald-mod-actions:hover{
color: <?php echo esc_attr( $color_footer_acc ); ?>;
.herald-site-footer .widget a,
.herald-site-footer .mks_author_widget h3{
color: <?php echo esc_attr( $color_footer_txt ); ?>;
.herald-site-footer .entry-meta .meta-item,
.herald-site-footer .entry-meta span,
.herald-site-footer .entry-meta a,
.herald-site-footer .meta-category span,
.herald-site-footer .post-date,
.herald-site-footer .recentcomments,
.herald-site-footer .rss-date,
.herald-site-footer .comment-metadata a{
color: <?php echo esc_attr( $color_footer_meta ); ?>;
.herald-site-footer .mks_author_widget .mks_autor_link_wrap a,
.herald-site-footer .mks_read_more a,
.herald-site-footer .herald-read-more,
.herald-site-footer .herald-slider-controls .owl-prev,
.herald-site-footer .herald-slider-controls .owl-next,
.herald-site-footer .herald-mod-wrap .herald-mod-actions a{
border-color: <?php echo herald_hex2rgba($color_footer_txt, 0.2); ?>;
.herald-site-footer .mks_author_widget .mks_autor_link_wrap a:hover,
.herald-site-footer .mks_read_more a:hover,
.herald-site-footer .herald-read-more:hover,
.herald-site-footer .herald-slider-controls .owl-prev:hover,
.herald-site-footer .herald-slider-controls .owl-next:hover,
.herald-site-footer .herald-mod-wrap .herald-mod-actions a:hover{
border-color: <?php echo herald_hex2rgba($color_footer_acc, 0.5); ?>;
.herald-site-footer .widget_search .herald-search-input{
color: <?php echo esc_attr( $color_footer_bg ); ?>;
.herald-site-footer .widget_tag_cloud a:hover{
background:<?php echo esc_attr( $color_footer_acc ); ?>;
color:<?php echo esc_attr( $color_footer_txt ); ?>;
.footer-bottom .herald-copyright a{
color:<?php echo esc_attr( $color_footer_acc ); ?>;
.footer-bottom .herald-menu li:hover > a{
color: <?php echo esc_attr( $color_footer_acc ); ?>;
.footer-bottom .sub-menu{
background-color: rgba(0,0,0,0.5);
border-top: 1px solid <?php echo herald_hex2rgba( $color_content_title , 0.1); ?>;
.comment-respond a:hover,
.comment-reply-link:hover{
border-bottom: 2px solid <?php echo esc_attr( $color_content_acc ); ?>;
.footer-bottom .herald-copyright a:hover{
border-bottom: 2px solid <?php echo esc_attr( $color_footer_acc ); ?>;
.herald-slider-controls .owl-prev,
.herald-slider-controls .owl-next,
.herald-mod-wrap .herald-mod-actions a{
border: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.2); ?>;
.herald-slider-controls .owl-prev:hover,
.herald-slider-controls .owl-next:hover,
.herald-mod-wrap .herald-mod-actions a:hover,
.herald-author .herald-socials-actions .herald-mod-actions a:hover {
border-color: <?php echo herald_hex2rgba($color_content_acc, 0.5); ?>;
#wp-calendar tbody td:last-child{
border: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.1); ?>;
border-bottom: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.1); ?>;
.herald-site-content .herald-related .herald-lay-h:after,
.herald-site-content .herald-related .herald-lay-e:after,
.herald-site-content .herald-related .herald-lay-j:after,
.herald-site-content .herald-related .herald-lay-l:after {
background-color: <?php echo herald_hex2rgba($color_content_txt, 0.1); ?>;
.wp-block-search__button{
background: <?php echo esc_attr( $color_content_acc ); ?>;
.wp-block-search__button{
color: <?php echo esc_attr( $color_content_bg ); ?>;
.mks_author_widget .mks_autor_link_wrap a,
.widget .meks-instagram-follow-link a,
border-color: <?php echo herald_hex2rgba($color_content_txt, 0.2); ?>;
.entry-content .herald-search-input,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
border-color: <?php echo herald_hex2rgba($color_content_txt, 0.3); ?>;
.mks_author_widget .mks_autor_link_wrap a:hover,
.widget .meks-instagram-follow-link a:hover,
border-color: <?php echo herald_hex2rgba($color_content_acc, 0.5); ?>;
.entry-content .herald-search-form,
.herald-mod-desc .herald-search-form{
background-color: <?php echo herald_hex2rgba($color_content_txt, 0.06); ?>;
border: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.15); ?>;
.herald-boxed .herald-breadcrumbs{
background-color: <?php echo herald_hex2rgba($color_content_txt, 0.06); ?>;
border-color: <?php echo herald_hex2rgba($color_content_txt, 0.15); ?>;
.single .herald-entry-content .herald-ad,
.archive .herald-posts .herald-ad{
border-top: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.15); ?>;
.archive .herald-posts .herald-ad{
border-bottom: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.15); ?>;
li.comment .comment-body:after{
background-color: <?php echo herald_hex2rgba($color_content_txt, 0.06); ?>;
.herald-pf-invert .entry-title a:hover .herald-format-icon{
background: <?php echo esc_attr( $color_content_acc ); ?>;
/* Find which area contains main navigation and apply styles to responsive nav */
if(herald_main_nav_section() == 'middle'){
$color_header_responsive_bg = $color_header_middle_bg;
$color_header_responsive_txt = $color_header_middle_txt;
$color_header_responsive_acc = $color_header_middle_acc;
$color_header_responsive_bg = $color_header_bottom_bg;
$color_header_responsive_txt = $color_header_bottom_txt;
$color_header_responsive_acc = $color_header_bottom_acc;
if( $color_header_responsive_bg == $color_content_bg ){
echo '.herald-responsive-header{ box-shadow: 1px 0 0 1px '.herald_hex2rgba($color_header_responsive_txt, 0.15).';}';