: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
$et_gf_heading_font = sanitize_text_field( et_pb_get_specific_default_font( et_get_option( 'heading_font', 'none' ) ) );
$et_gf_body_font = sanitize_text_field( et_pb_get_specific_default_font( et_get_option( 'body_font', 'none' ) ) );
$et_gf_buttons_font = sanitize_text_field( et_pb_get_specific_default_font( et_get_option( 'all_buttons_font', 'none' ) ) );
$et_gf_primary_nav_font = sanitize_text_field( et_pb_get_specific_default_font( et_get_option( 'primary_nav_font', 'none' ) ) );
$et_gf_secondary_nav_font = sanitize_text_field( et_pb_get_specific_default_font( et_get_option( 'secondary_nav_font', 'none' ) ) );
$et_gf_slide_nav_font = sanitize_text_field( et_pb_get_specific_default_font( et_get_option( 'slide_nav_font', 'none' ) ) );
$site_domain = get_locale();
$et_one_font_languages = et_get_one_font_languages();
/* =========================================
* --------->>> BEGIN FONTS CSS <<<---------
* ========================================= */
if ( isset( $et_one_font_languages[$site_domain] ) ) {
<?php echo $css( 'h1' ); ?>,
<?php echo $css( 'h2' ); ?>,
<?php echo $css( 'h3' ); ?>,
<?php echo $css( 'h4' ); ?>,
<?php echo $css( 'h5' ); ?>,
<?php echo $css( 'h6' ); ?>,
<?php echo $css( 'input' ); ?>,
<?php echo $css( 'textarea' ); ?>,
<?php echo $css( 'select' ); ?> {
font-family: <?php echo sanitize_text_field( $et_one_font_languages[$site_domain]['font_family'] ); ?>;
} else if ( ! in_array( $et_gf_heading_font, array( '', 'none' ) ) || ! in_array( $et_gf_body_font, array( '', 'none' ) ) || ! in_array( $et_gf_buttons_font, array( '', 'none' ) ) || ! in_array( $et_gf_primary_nav_font, array( '', 'none' ) ) || ! in_array( $et_gf_secondary_nav_font, array( '', 'none' ) ) || ! in_array( $et_gf_slide_nav_font, array( '', 'none' ) ) ) {
if ( ! in_array( $et_gf_heading_font, array( '', 'none' ) ) ) {
<?php echo $css( 'h1' ); ?>,
<?php echo $css( 'h2' ); ?>,
<?php echo $css( 'h3' ); ?>,
<?php echo $css( 'h4' ); ?>,
<?php echo $css( 'h5' ); ?>,
<?php echo $css( 'h6' ); ?> {
<?php echo sanitize_text_field( et_builder_get_font_family( $et_gf_heading_font ) ); ?>
if ( ! in_array( $et_gf_body_font, array( '', 'none' ) ) ) { ?>
<?php echo $css( 'input' ); ?>,
<?php echo $css( 'textarea' ); ?>,
<?php echo $css( 'select' ); ?> {
<?php echo sanitize_text_field( et_builder_get_font_family( $et_gf_body_font ) ); ?>
if ( ! in_array( $et_gf_buttons_font, array( '', 'none' ) ) ) { ?>
<?php echo $css( '.et_pb_button', false ); ?> {
<?php echo sanitize_text_field( et_builder_get_font_family( $et_gf_buttons_font ) ); ?>
if ( ! in_array( $et_gf_primary_nav_font, array( '', 'none' ) ) ) { ?>
<?php echo sanitize_text_field( et_builder_get_font_family( $et_gf_primary_nav_font ) ); ?>
if ( ! in_array( $et_gf_secondary_nav_font, array( '', 'none' ) ) ) { ?>
<?php echo sanitize_text_field( et_builder_get_font_family( $et_gf_secondary_nav_font ) ); ?>
if ( ! in_array( $et_gf_slide_nav_font, array( '', 'none' ) ) ) { ?>
.et_slide_in_menu_container, .et_slide_in_menu_container .et-search-field{
<?php echo sanitize_text_field( et_builder_get_font_family( $et_gf_slide_nav_font ) ); ?>
} // <<<--------- END FONTS CSS --------->>>
* Filter fonts CSS output.
* @param string $css_output
$css_output[] = apply_filters( 'et_divi_fonts_css_output', ob_get_clean() );
* use_sidebar_width might invalidate the use of sidebar_width.
* It is placed outside other customizer style so live preview
* can invalidate and revalidate it for smoother experience
if ( $use_sidebar_width && 21 !== $sidebar_width && 19 <= $sidebar_width && 33 >= $sidebar_width ) {
$content_width = 100 - $sidebar_width;
$content_width_percentage = $content_width . '%';
$sidebar_width_percentage = $sidebar_width . '%';
$sidebar_width_css = sprintf(
'body #page-container #sidebar { width:%2$s; }
body #page-container #left-area { width:%1$s; }
.et_right_sidebar #main-content .container:before { right:%2$s !important; }
.et_left_sidebar #main-content .container:before { left:%2$s !important; }',
esc_html( $content_width_percentage ),
esc_html( $sidebar_width_percentage )
* Filter sidebar width CSS output.
* @param string $sidebar_width_css
$css_output[] = apply_filters( 'et_divi_sidebar_width_css_output', $sidebar_width_css );
/* ====================================================
* --------->>> BEGIN MODULE CUSTOMIZER CSS <<<--------
* ==================================================== */
* Module Customizer contains only CSS responsible for the font size options.
* The CSS is printed only if website has an unmigrated Module Customizer font size values into the
* new Global Defaults system. The values suppose to be migrated at the first time when Global Defaults
$custom_defaults_unmigrated = et_get_option( 'builder_custom_defaults_unmigrated', false );
// Module customizer should only be printed if current page uses builder to avoid module
// customizer styling being cached on `et-divi-customizer-global-*css` file which is only
// served on non-builder page
if ( et_core_is_builder_used_on_current_request() && $custom_defaults_unmigrated ) {
et_pb_print_module_styles_css( 'et_pb_gallery', array(
'key' => 'title_font_size',
'selector' => '.et_pb_gallery_grid .et_pb_gallery_item .et_pb_gallery_title',
'key' => 'caption_font_size',
'selector' => '.et_pb_gallery .et_pb_gallery_item .et_pb_gallery_caption',
et_pb_print_module_styles_css( 'et_pb_blurb', array(
'key' => 'header_font_size',
'selector' => '.et_pb_blurb h4',
et_pb_print_module_styles_css( 'et_pb_tabs', array(
'key' => 'title_font_size',
'selector' => '.et_pb_tabs_controls li',
'type' => 'padding-tabs',
et_pb_print_module_styles_css( 'et_pb_slider', array(
'key' => 'header_font_size',
'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description .et_pb_slide_title',
'key' => 'body_font_size',
'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_content',
'type' => 'padding-slider',
'selector' => '.et_pb_slider_fullwidth_off .et_pb_slide_description',
et_pb_print_module_styles_css( 'et_pb_pricing_tables', array(
'key' => 'header_font_size',
'selector' => '.et_pb_pricing_heading h2',
'key' => 'subheader_font_size',
'selector' => '.et_pb_best_value',
'key' => 'price_font_size',
'selector' => '.et_pb_sum',
et_pb_print_module_styles_css( 'et_pb_cta', array(
'key' => 'header_font_size',
'selector' => '.et_pb_promo h2',
'type' => 'padding-call-to-action',
'key' => 'custom_padding',
et_pb_print_module_styles_css( 'et_pb_audio', array(
'key' => 'title_font_size',
'selector' => '.et_pb_audio_module_content h2',
'key' => 'caption_font_size',
'selector' => '.et_pb_audio_module p',
et_pb_print_module_styles_css( 'et_pb_signup', array(
'key' => 'header_font_size',
'selector' => '.et_pb_subscribe h2',
'selector' => '.et_pb_subscribe',
et_pb_print_module_styles_css( 'et_pb_login', array(
'key' => 'header_font_size',
'selector' => '.et_pb_login h2',
'type' => 'padding-top-bottom',
'key' => 'custom_padding',
'selector' => '.et_pb_login',
et_pb_print_module_styles_css( 'et_pb_portfolio', array(
'key' => 'title_font_size',
'selector' => '.et_pb_portfolio .et_pb_portfolio_item h2, .et_pb_fullwidth_portfolio .et_pb_portfolio_item h3, .et_pb_portfolio_grid .et_pb_portfolio_item h2',
'key' => 'caption_font_size',
'selector' => '.et_pb_portfolio .et_pb_portfolio_item .post-meta, .et_pb_fullwidth_portfolio .et_pb_portfolio_item .post-meta, .et_pb_portfolio_grid .et_pb_portfolio_item .post-meta',
/* Filterable Portfolio */
et_pb_print_module_styles_css( 'et_pb_filterable_portfolio', array(
'key' => 'title_font_size',
'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item h2',
'key' => 'caption_font_size',
'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_item .post-meta',
'key' => 'filter_font_size',
'selector' => '.et_pb_filterable_portfolio .et_pb_portfolio_filters li',
et_pb_print_module_styles_css( 'et_pb_counters', array(
'key' => 'title_font_size',
'selector' => '.et_pb_counters .et_pb_counter_title',
'key' => 'percent_font_size',
'selector' => '.et_pb_counters .et_pb_counter_amount',
'selector' => '.et_pb_counter_amount',
et_pb_print_module_styles_css( 'et_pb_circle_counter', array(
'key' => 'number_font_size',
'selector' => '.et_pb_circle_counter .percent p',
'key' => 'title_font_size',
'selector' => '.et_pb_circle_counter h3',
et_pb_print_module_styles_css( 'et_pb_number_counter', array(
'key' => 'number_font_size',
'selector' => '.et_pb_number_counter .percent p',
'key' => 'title_font_size',
'selector' => '.et_pb_number_counter h3',
et_pb_print_module_styles_css( 'et_pb_accordion', array(
'key' => 'toggle_font_size',
'selector' => '.et_pb_accordion .et_pb_toggle_title',
'key' => 'custom_padding',
'selector' => '.et_pb_accordion .et_pb_toggle_open, .et_pb_accordion .et_pb_toggle_close',
et_pb_print_module_styles_css( 'et_pb_toggle', array(
'key' => 'title_font_size',
'selector' => '.et_pb_toggle.et_pb_toggle_item h5',
'key' => 'custom_padding',
'selector' => '.et_pb_toggle.et_pb_toggle_item',
et_pb_print_module_styles_css( 'et_pb_contact_form', array(
'key' => 'title_font_size',
'selector' => '.et_pb_contact_form_container .et_pb_contact_main_title',
'key' => 'form_field_font_size',
'selector' => '.et_pb_contact_form_container .et_pb_contact p input, .et_pb_contact_form_container .et_pb_contact p textarea',
'key' => 'captcha_font_size',
'selector' => '.et_pb_contact_captcha_question',
'selector' => '.et_pb_contact p input, .et_pb_contact p textarea',
et_pb_print_module_styles_css( 'et_pb_sidebar', array(
'key' => 'header_font_size',
'selector' => '.et_pb_widget_area h4',
et_pb_print_module_styles_css( 'et_pb_team_member', array(
'key' => 'header_font_size',
'selector' => '.et_pb_team_member h4',
'key' => 'subheader_font_size',
'selector' => '.et_pb_team_member .et_pb_member_position',
et_pb_print_module_styles_css( 'et_pb_blog', array(
'key' => 'header_font_size',
'selector' => '.et_pb_posts .et_pb_post h2',
'key' => 'meta_font_size',
'selector' => '.et_pb_posts .et_pb_post .post-meta',
et_pb_print_module_styles_css( 'et_pb_blog_masonry', array(
'key' => 'header_font_size',
'selector' => '.et_pb_blog_grid .et_pb_post h2',
'key' => 'meta_font_size',
'selector' => '.et_pb_blog_grid .et_pb_post .post-meta',
et_pb_print_module_styles_css( 'et_pb_shop', array(
'key' => 'title_font_size',
'selector' => '.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3',
'key' => 'sale_badge_font_size',
'selector' => '.woocommerce span.onsale, .woocommerce-page span.onsale',
'key' => 'price_font_size',
'selector' => '.woocommerce ul.products li.product .price .amount, .woocommerce-page ul.products li.product .price .amount',
'key' => 'sale_price_font_size',
'selector' => '.woocommerce ul.products li.product .price ins .amount, .woocommerce-page ul.products li.product .price ins .amount',
et_pb_print_module_styles_css( 'et_pb_countdown_timer', array(
'key' => 'header_font_size',
'selector' => '.et_pb_countdown_timer .title',
et_pb_print_module_styles_css( 'et_pb_social_media_follow', array(
'type' => 'social-icon-size',
et_pb_print_module_styles_css( 'et_pb_fullwidth_slider', array(