An integration with the WoodMart theme
This integration blocks the Maps API and the WoodMart scripts that depend on it, prior to consent from the website visitor.
For instructions on the installation of an MU Plugin, please see our earlier article: Adding filters with MU Plugins. Quick & Easy
Note: the WoodMart Google Maps element is solely available when using WPBakery.
- Upload the “woodmart-custom-google-maps.php” file to the /wp-content/mu-plugins/ directory on your site.
- Open the WPBakery Frontend Editor and add a “Google Map” block to the page
- Hover over the Google Map and click the Pencil icon to adjust the Map settings
- Enter your Google Maps API key, configure the remaining fields to your liking
If your implementation is correct, you should see results like in the below video.