From 1a0dcabb1b959215b4606493b2cc66aa0978fea9 Mon Sep 17 00:00:00 2001 From: Brandonma21 Date: Mon, 26 Oct 2026 12:33:04 +0200 Subject: [PATCH 1/2] fix: consultation-popup - Open the popup from the CTA band and section buttons (LSA-214) Consultation trigger - Add the pum-triggercta class to the consultation button in 8 CTA band patterns - Cover cta-dark-band-buttons, the five section-cta-consultation and split-checklist patterns, split-cta-check-card and split-cta-tile-band - Add it to the buttons in blog-writing-cta, homepage-cta, phase-support-focus, services-cta and work-discuss-project Brief trigger - Add the pum-triggerbrief class to the "Send a brief first" buttons in homepage-cta and work-discuss-project - Keep their /contact/ link as the fallback Fallback - Keep every button's existing link, so the button still works if the popup or JavaScript fails - Put the class on the wp-block-button wrapper, as in the existing trigger patterns Left unchanged - Leave the "Explore related work", "See discovery in practice" and "Explore our services" links as plain links - Add no new SCSS, tokens or styles --- patterns/cta/cta-dark-band-buttons.php | 4 ++-- patterns/cta/section-cta-consultation-band.php | 4 ++-- patterns/cta/section-cta-consultation-inline.php | 4 ++-- patterns/cta/section-cta-consultation-reassurance.php | 4 ++-- patterns/cta/section-cta-consultation-strip.php | 4 ++-- patterns/cta/section-cta-split-checklist.php | 4 ++-- patterns/cta/split-cta-check-card.php | 4 ++-- patterns/cta/split-cta-tile-band.php | 4 ++-- patterns/sections/blog-writing-cta.php | 4 ++-- patterns/sections/homepage-cta.php | 8 ++++---- patterns/sections/phase-support-focus.php | 4 ++-- patterns/sections/services-cta.php | 4 ++-- patterns/sections/work-discuss-project.php | 8 ++++---- 13 files changed, 30 insertions(+), 30 deletions(-) diff --git a/patterns/cta/cta-dark-band-buttons.php b/patterns/cta/cta-dark-band-buttons.php index 56e5f24d..27aa7cf2 100644 --- a/patterns/cta/cta-dark-band-buttons.php +++ b/patterns/cta/cta-dark-band-buttons.php @@ -42,8 +42,8 @@
- -
+ +
diff --git a/patterns/cta/section-cta-consultation-band.php b/patterns/cta/section-cta-consultation-band.php index e645d732..b8d3d9f7 100644 --- a/patterns/cta/section-cta-consultation-band.php +++ b/patterns/cta/section-cta-consultation-band.php @@ -48,8 +48,8 @@
- -
+ +
diff --git a/patterns/cta/section-cta-consultation-inline.php b/patterns/cta/section-cta-consultation-inline.php index c1e338d9..df297dd4 100644 --- a/patterns/cta/section-cta-consultation-inline.php +++ b/patterns/cta/section-cta-consultation-inline.php @@ -47,8 +47,8 @@
- -
+ +
diff --git a/patterns/cta/section-cta-consultation-reassurance.php b/patterns/cta/section-cta-consultation-reassurance.php index f785d013..aa723061 100644 --- a/patterns/cta/section-cta-consultation-reassurance.php +++ b/patterns/cta/section-cta-consultation-reassurance.php @@ -37,8 +37,8 @@
- -
+ +
diff --git a/patterns/cta/section-cta-consultation-strip.php b/patterns/cta/section-cta-consultation-strip.php index bedbd201..f9d5f4e2 100644 --- a/patterns/cta/section-cta-consultation-strip.php +++ b/patterns/cta/section-cta-consultation-strip.php @@ -45,8 +45,8 @@
- -
+ +
diff --git a/patterns/cta/section-cta-split-checklist.php b/patterns/cta/section-cta-split-checklist.php index 3436cdb7..c3bb7f7e 100644 --- a/patterns/cta/section-cta-split-checklist.php +++ b/patterns/cta/section-cta-split-checklist.php @@ -51,8 +51,8 @@
- -
+ +
diff --git a/patterns/cta/split-cta-check-card.php b/patterns/cta/split-cta-check-card.php index 37cd8ad8..b04cdf60 100644 --- a/patterns/cta/split-cta-check-card.php +++ b/patterns/cta/split-cta-check-card.php @@ -47,8 +47,8 @@
- -
+ +
diff --git a/patterns/cta/split-cta-tile-band.php b/patterns/cta/split-cta-tile-band.php index 4bd87497..f10028b0 100644 --- a/patterns/cta/split-cta-tile-band.php +++ b/patterns/cta/split-cta-tile-band.php @@ -61,8 +61,8 @@
- -
+ +
diff --git a/patterns/sections/blog-writing-cta.php b/patterns/sections/blog-writing-cta.php index 693e8d8d..e5b752f9 100644 --- a/patterns/sections/blog-writing-cta.php +++ b/patterns/sections/blog-writing-cta.php @@ -58,8 +58,8 @@
- -
+ +
diff --git a/patterns/sections/homepage-cta.php b/patterns/sections/homepage-cta.php index c51cead0..1de9d666 100644 --- a/patterns/sections/homepage-cta.php +++ b/patterns/sections/homepage-cta.php @@ -52,12 +52,12 @@
- -
+ +
- -
+ +
diff --git a/patterns/sections/phase-support-focus.php b/patterns/sections/phase-support-focus.php index 9e79a50a..101d7556 100644 --- a/patterns/sections/phase-support-focus.php +++ b/patterns/sections/phase-support-focus.php @@ -100,8 +100,8 @@
- -
+ +
diff --git a/patterns/sections/services-cta.php b/patterns/sections/services-cta.php index 832f8d50..136f5b47 100644 --- a/patterns/sections/services-cta.php +++ b/patterns/sections/services-cta.php @@ -44,8 +44,8 @@
- -
+ +
diff --git a/patterns/sections/work-discuss-project.php b/patterns/sections/work-discuss-project.php index fa1bd1dc..3254d3cb 100644 --- a/patterns/sections/work-discuss-project.php +++ b/patterns/sections/work-discuss-project.php @@ -45,12 +45,12 @@
- -
+ +
- -
+ +
From 669ca5453632f55fe16a8c585eff580883cd6501 Mon Sep 17 00:00:00 2001 From: Brandonma21 Date: Mon, 26 Oct 2026 12:57:44 +0200 Subject: [PATCH 2/2] docs: changelog - Add the CTA band and section popup buttons entry (LSA-214) Changelog - Add the entry for the CTA band and section popup buttons - Note the Website Brief popup on the two "Send a brief first" buttons - Note that each button keeps its fallback link - Link the entry to PR #162 Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ec7b9b2..7fca647d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- +## [Unreleased] — Open the popup from the CTA band and section buttons (LSA-214) + +### Changed + +- The consultation buttons in the CTA band patterns (`cta-dark-band-buttons`, `section-cta-consultation-band`, `-inline`, `-reassurance`, `-strip`, `section-cta-split-checklist`, `split-cta-check-card`, `split-cta-tile-band`) and the section patterns (`blog-writing-cta`, `homepage-cta`, `phase-support-focus`, `services-cta`, `work-discuss-project`) now open the Consultation popup instead of leaving the page, so Form 4 entries record the page the visitor was on. Each button keeps its link to `/free-consultation/` as a fallback if the popup or JavaScript fails. +- The "Send a brief first" buttons in `homepage-cta` and `work-discuss-project` open the Website Brief popup and keep their `/contact/` link as the fallback. + +([#162](https://github.com/lightspeedwp/ls-theme/pull/162)) + +--- + ## [Unreleased] — Open the Consultation popup from the hero, header and phase CTA buttons (LSA-214) ### Changed