Browser: Chrome 110
OS: Windows
URL: Twoje Biuro | Coworking Kraków - Chilliflex
Hello,
After update to bricks 1.7.3 i lost comatibility with wp maps. Maps are placed on page with shortcode.
Here is a example post with short code (working)
https://chilliflex.co/pierwszy-wpis
The same shortcode on page: (not working)
https://chilliflex.co/krakow/#map
The plugin:
Hey Tomasz,
thanks for your report.
There are multiple errors in the console on the non-working page. Mainly it seems to be about missing jQuery:
To check what might be wrong in this specific scenario we’d definitely have to have a look at the site. So it would be great if you were so kind as to provide us with some temporary credentials to the site you’re having the problems on as well as a link to this forum thread via help@bricksbuilder.io.
Best,
André
Mail sent, let me know if got lost 
Hey Tomasz,
thanks. We received the credentials.
One additional question: When you’re talking about “losing the compatibility with 1.7.3”. Does that mean it worked for you with a previous Bricks version?
Best,
André
Yes, it worked with previous version.
Hey Tomasz,
I could reproduce the map not loading with 1.7.3. I tried 1.7.2 which did not make a difference though. So if it worked for you with a previous version it would help if you could tell me the exact version that worked for you. That way I can check if we applied any changes we maybe shouldn’t have.
However, the main problem is that the plugin expects jQuery to be loaded earlier than it actually is. Since you’re using the Bricks child theme you can add the following snippet to your functions.php:
add_action( 'wp_enqueue_scripts', function() {
if ( ! bricks_is_builder_main() ) {
wp_enqueue_script( 'jquery' );
}
} );
This should load jQuery earlier and make your maps appear.
Let me know if that helps.
Best,
André
Code help, maps are working. I don’t remember when maps stop woorking but on 1.6 definity work. 1.7.0 i think too.
Hey Tomasz,
glad I could help.
For me I had to downgrade to 1.3.7 (!) to make it work. That’s the last version where Bricks loaded jQuery on the frontend (see Changelog – Bricks). So if it worked for you in 1.6 it did not have to do with Bricks.
To me it looks like the plugin does not do a great job in correctly enqueueing jQuery as needed.
Best,
André
I will sent it to the plugin team. Possibly wp maps team did some update between bricks versions and that caused the problem. Site was build on 1.5.x and it work then
i don’t even have access to bricks on 1.3.7 
Hey Tomasz,
just had a quick look at the plugin’s changelog. I’m pretty sure the latest update (4.4.5) broke it because of this line in the changelog:
Fix : Styles and scripts of plugin are loaded only when map shortcode exists on page.
See WordPress Plugin for Google Maps – WP MAPS – WordPress plugin | WordPress.org.
The plugin checks the regular post content for the shortcode. This works when using Gutenberg content (like on your working page) but not when using Bricks (or any other page builder that stores its page content in a different way). That’s why jQuery is not correctly enqueued by the plugin.
Best,
André
1 Like