Add wrapper to top header countdown
authorLaury GvR <laury@gaslightmedia.com>
Thu, 16 May 2019 21:19:45 +0000 (17:19 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 16 May 2019 21:19:45 +0000 (17:19 -0400)
functions.php

index 18630ed..9b063d4 100644 (file)
@@ -744,7 +744,8 @@ function fusion_doing_ajax() {
 
 /* Custom GLM Additions */
 function secondary_header_countdown() {
-       do_shortcode(
+       echo '<div id="top-countdown">';
+       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 '</div>';
+
 }
-add_filter( 'avada_secondary_header_content', 'secondary_header_countdown' );
+add_filter( 'avada_before_header_wrapper', 'secondary_header_countdown' );