From f50a7550539c3945d1d508016b3c1bc93a92e474 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 16 May 2019 17:19:45 -0400 Subject: [PATCH] Add wrapper to top header countdown --- functions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 18630ed..9b063d4 100644 --- a/functions.php +++ b/functions.php @@ -744,7 +744,8 @@ function fusion_doing_ajax() { /* Custom GLM Additions */ function secondary_header_countdown() { - do_shortcode( + echo '
'; + echo do_shortcode( '[fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" @@ -754,15 +755,16 @@ function secondary_header_countdown() { hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" - animation_speed="0.3" animation_offset="" last="no"][fusion_countdown countdown_end="2019-09-02 12:00:00" timezone="" show_weeks="" border_radius="" + animation_speed="0.3" animation_offset="" last="no"][fusion_countdown countdown_end="2019-08-12 12:00:00" timezone="" show_weeks="" border_radius="" heading_text="August 12-18, 2019 | " subheading_text="Subheading text" link_url="" link_text="" link_target="default" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_position="" background_repeat="" counter_box_color="" counter_text_color="" heading_text_color="" subheading_text_color="" link_text_color="" /][/fusion_builder_column] [/fusion_builder_row][/fusion_builder_container]' ); - + echo '
'; + } -add_filter( 'avada_secondary_header_content', 'secondary_header_countdown' ); +add_filter( 'avada_before_header_wrapper', 'secondary_header_countdown' ); -- 2.17.1