From 593e376eacb700c790f9aa996b1a75350e4674a5 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Sun, 6 Mar 2022 15:45:30 +1000 Subject: [PATCH 1/2] CSS Container Breaker: Only Output Full Width Global CSS once --- inc/renderer.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/renderer.php b/inc/renderer.php index 02177686f..85c87902b 100644 --- a/inc/renderer.php +++ b/inc/renderer.php @@ -349,8 +349,12 @@ public function generate_css( $post_id, $panels_data = false, $layout_data = fal // Do we need to remove the theme container on this page? if ( $this->container['css_override'] && - $this->container['full_width'] // Does this layout have full width layouts? - ) { + $this->container['full_width'] && // Does this layout have full width layouts? + ! defined( 'siteorigin_css_override' ) + ) { + // Prevent this CSS from being added again. + define( 'siteorigin_css_override', true ); + $css->add_css( esc_html( $this->container['selector'] ), array( From d0ebdb67688a8129ce977914a7bc4be350256d04 Mon Sep 17 00:00:00 2001 From: Andrew Misplon Date: Sun, 6 Mar 2022 12:43:14 +0200 Subject: [PATCH 2/2] Updated changelog --- readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.txt b/readme.txt index 1f17e3141..b252aa60a 100644 --- a/readme.txt +++ b/readme.txt @@ -107,6 +107,9 @@ SiteOrigin Premium includes access to our professional email support service, pe == Changelog == += 2.16.5 - 06 March 2022 = +* Full-Width Containers Using CSS: Ensured full-width global CSS is only output once. + = 2.16.4 - 19 February 2022 = * Full-Width Containers Using CSS: Restored normal functionality when Standard or Full-Width rows not present. * Full-Width Containers Using CSS: Resolved a collapse issue when the browser resolution equals the collapse value.