From 1e668d4383c1e845f0b7e87566dc41185537a897 Mon Sep 17 00:00:00 2001 From: Gilles Van Assche Date: Thu, 23 Oct 2025 15:36:35 +0200 Subject: [PATCH] Fix scroll to the thanks message after form submission --- includes/utilities.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/includes/utilities.php b/includes/utilities.php index aa0e81a..ad8d496 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -361,3 +361,40 @@ function translate_city_name($city, $required_language = 'fr') } return $city; } + + +/* Scroll automatique vers le formulaire après soumission */ +add_action( 'wp_footer', function() { + if ( is_page(309) ) { // remplace 'contact' par le slug de ta page + ?> + + + +