Applying Custom Map Styles to the Map Field

add_filter( ‘wpforms_geolocation_forms_field_get_map_field_settings’, ‘wpf_geolocation_forms_field_get_map_field_settings’, 10, 3 ); function wpf_geolocation_forms_field_get_map_field_settings( $settings, $field, $form_data ): array { $settings = (array) $settings; if ( empty( $form_data[‘id’] ) ) { return $settings; } if ( (int) $form_data[‘id’] !== 111 ) { // TODO: Change 111…Continue reading

Untitled Snippet

document.addEventListener(“click”, (e) => { const pill = e.target.closest(“.rs-pill”); if (!pill) return; const row = pill.parentElement; row.querySelectorAll(“.rs-pill”).forEach(p => p.classList.remove(“active”)); pill.classList.add(“active”); });Continue reading

CSS de base

p, h1, h2, h3, h4, h5, h6 { margin-block-start: 0!important; margin-block-end: 0; } ul { margin: 0; padding: 0 0 15px 15px; } .elementor-widget-text-editor a, .elementor-widget-theme-post-content a{ color: inherit; text-decoration: underline; }Continue reading

Can You Add More Product Types To The Product Search Boxes?

add_filter( ‘acfw_product_search_allowed_types’ , ‘support_booking_product_type_in_search’ ); function support_booking_product_type_in_search( $allowed_types ) { $allowed_types[] = ‘booking’; $allowed_types[] = ‘bundle’; $allowed_types[] = ‘composite’; return $allowed_types; }Continue reading