From b97fce0d9de075734d6a83cc462a7d9f67f9b0ac Mon Sep 17 00:00:00 2001 From: Brandonma21 Date: Mon, 26 Oct 2026 12:25:59 +0200 Subject: [PATCH 1/2] fix: consultation-popup - Open the Consultation popup from the hero, header and phase CTA buttons (LSA-214) Popup triggers - Add the pum-triggercta class to the consultation buttons in the hero patterns - Cover hero-split-glance, hero-split-index-card, hero-split-proof, phase-hero, service-hero, services-hero, solutions-hero, work-hero and work-single-hero - Add it to the home-hero-static button and the header "Start a project" button - Add it to the "Book your consultation instead" link in home-hero - Add it to the "Book a consultation" button in phase-cta Fallback - Keep every button's /free-consultation/ 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 - Keep the "Request a discovery workshop" button in phase-cta as a plain link, because the popup form cannot carry ?type=discovery-workshop - Leave the outline and secondary buttons and other navigation links alone - Add no new SCSS, tokens or styles --- patterns/header.php | 4 ++-- patterns/hero/hero-split-glance.php | 4 ++-- patterns/hero/hero-split-index-card.php | 4 ++-- patterns/hero/hero-split-proof.php | 4 ++-- patterns/hero/phase-hero.php | 4 ++-- patterns/hero/service-hero.php | 4 ++-- patterns/hero/services-hero.php | 4 ++-- patterns/hero/solutions-hero.php | 4 ++-- patterns/hero/work-hero.php | 4 ++-- patterns/hero/work-single-hero.php | 4 ++-- patterns/home-hero-static.php | 4 ++-- patterns/home-hero.php | 2 +- patterns/sections/phase-cta.php | 4 ++-- 13 files changed, 25 insertions(+), 25 deletions(-) diff --git a/patterns/header.php b/patterns/header.php index 2c731d85..d559ba6a 100644 --- a/patterns/header.php +++ b/patterns/header.php @@ -33,8 +33,8 @@ -
-
+
+
diff --git a/patterns/hero/hero-split-glance.php b/patterns/hero/hero-split-glance.php index c78bf94d..2de0ff71 100644 --- a/patterns/hero/hero-split-glance.php +++ b/patterns/hero/hero-split-glance.php @@ -77,8 +77,8 @@
- -
+ +
diff --git a/patterns/hero/hero-split-index-card.php b/patterns/hero/hero-split-index-card.php index 2c1165d4..86807ed6 100644 --- a/patterns/hero/hero-split-index-card.php +++ b/patterns/hero/hero-split-index-card.php @@ -122,8 +122,8 @@
- -
+ +
diff --git a/patterns/hero/hero-split-proof.php b/patterns/hero/hero-split-proof.php index e78d8bc0..b567977a 100644 --- a/patterns/hero/hero-split-proof.php +++ b/patterns/hero/hero-split-proof.php @@ -75,8 +75,8 @@
- -
+ +
diff --git a/patterns/hero/phase-hero.php b/patterns/hero/phase-hero.php index 77f2adcb..f9dce460 100644 --- a/patterns/hero/phase-hero.php +++ b/patterns/hero/phase-hero.php @@ -71,8 +71,8 @@
- -
+ +
diff --git a/patterns/hero/service-hero.php b/patterns/hero/service-hero.php index 3aaa5b5e..17976209 100644 --- a/patterns/hero/service-hero.php +++ b/patterns/hero/service-hero.php @@ -84,8 +84,8 @@
- -
+ +
diff --git a/patterns/hero/services-hero.php b/patterns/hero/services-hero.php index ecf12019..13fc2964 100644 --- a/patterns/hero/services-hero.php +++ b/patterns/hero/services-hero.php @@ -164,8 +164,8 @@
- -
+ +
diff --git a/patterns/hero/solutions-hero.php b/patterns/hero/solutions-hero.php index f7f22e47..bfc340fd 100644 --- a/patterns/hero/solutions-hero.php +++ b/patterns/hero/solutions-hero.php @@ -55,8 +55,8 @@
- -
+ +
diff --git a/patterns/hero/work-hero.php b/patterns/hero/work-hero.php index c6999756..b582d82a 100644 --- a/patterns/hero/work-hero.php +++ b/patterns/hero/work-hero.php @@ -49,8 +49,8 @@
- -
+ +
diff --git a/patterns/hero/work-single-hero.php b/patterns/hero/work-single-hero.php index 19147e9f..0abf6948 100644 --- a/patterns/hero/work-single-hero.php +++ b/patterns/hero/work-single-hero.php @@ -45,8 +45,8 @@
- -
+ +
diff --git a/patterns/home-hero-static.php b/patterns/home-hero-static.php index 8ac3aa09..ebfaf32c 100644 --- a/patterns/home-hero-static.php +++ b/patterns/home-hero-static.php @@ -49,8 +49,8 @@
- -
+ +
diff --git a/patterns/home-hero.php b/patterns/home-hero.php index 68fd87e0..9fecc212 100644 --- a/patterns/home-hero.php +++ b/patterns/home-hero.php @@ -91,7 +91,7 @@ -

+

diff --git a/patterns/sections/phase-cta.php b/patterns/sections/phase-cta.php index 0972d244..7233c904 100644 --- a/patterns/sections/phase-cta.php +++ b/patterns/sections/phase-cta.php @@ -57,8 +57,8 @@
- -
+ +
From b87246192b2a6c03f8883cff7e065d2159b7239e Mon Sep 17 00:00:00 2001 From: Brandonma21 Date: Mon, 26 Oct 2026 12:28:55 +0200 Subject: [PATCH 2/2] docs: changelog - Add the consultation popup buttons entry (LSA-214) Changelog - Add the entry for the hero, header and phase CTA popup buttons - Note that each button keeps its /free-consultation/ fallback link - Note that the discovery workshop button stays a plain link - Link the entry to PR #161 Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dafc57ff..8ec7b9b2 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 Consultation popup from the hero, header and phase CTA buttons (LSA-214) + +### Changed + +- The consultation buttons in the hero patterns (`hero-split-glance`, `hero-split-index-card`, `hero-split-proof`, `phase-hero`, `service-hero`, `services-hero`, `solutions-hero`, `work-hero`, `work-single-hero`), `home-hero-static`, `home-hero` (the inline link), `header` and `sections/phase-cta` 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 "Request a discovery workshop" button in `sections/phase-cta` stays a plain link, because the popup form cannot carry the workshop type. + +([#161](https://github.com/lightspeedwp/ls-theme/pull/161)) + +--- + ## [Unreleased] — Rebuild the thank-you pattern as a reusable confirmation section (LSA-198) ### Added