-
AuthorPosts
-
November 24, 2020 at 12:35 pm #1262633
Hello,
While I appreciate your compliance to GDPR with regard to Google Maps cookie consent, I’m running a website in a very localized context in the USA (real estate property locator), and I don’t have GDPR concerns here (it only applies to 13 countries in the EU iirc). I am using
do_shortcode('[av_google_map'])
to dynamically display a property’s location via PHP plugin. But I can’t find a hook or variable that lets me switch off the consent requirement. The map’s container just shows the “Maps were disabled by the visitor on this site. Click to open the map in a new window.” which doesn’t apply to me. I ended up having to “display” the message so that my visitors have an option to view the map. This is NOT ideal.Please advise.
Thanks!
November 26, 2020 at 5:51 pm #1263312Hey,
Thanks for contacting us!
If you do not have GDPR concerns, you can go to Enfold theme options > Privacy and Cookies > Cookie Handling, click “Show advanced options” to display advanced options and select “Use as a simple message bar without cookie logic” in “Select use of the message bar” field – https://imgur.com/a/hbifdDx :)
Best regards,
YigitNovember 26, 2020 at 7:39 pm #1263344Legally I’m afraid, that if visitors from one of the countries in which the GDPR (DSGVO – for German speaking countries) is valid can reach your website – this website must also comply with the laws.
So if I now search for a property in this region, and I come to your site, the site would not comply with the law even though it is located in the USA.
November 27, 2020 at 1:46 pm #1263516Hello Yigit – that does not work. The map does not load because I’m using a direct shortcode call via PHP, and I need to be able to instruct Enfold to bypass the check. Here’s my code:
echo do_shortcode('[av_google_map height="400px" zoom="13" saturation="" hue="" zoom_control="aviaTBzoom_control" maptype_control="dropdown" maptype_id="" custom_class="" av_uid="av-k2kfwniz"] [av_gmap_location address="'.$address["street_address"].($address["address_line_2"]?", ".$address["address_line_2"]:NULL).'" city="'.$address["city"].'" country="USA" long="'.$address["lng"].'" lat="'.$address["lat"].'" marker="211" imagesize="40" av_uid="av-6uitn"]<strong>'. get_the_title($property->ID) . '</strong><br />' . $address["street_address"].($address["address_line_2"]?", ".$address["address_line_2"]:NULL) . '<br />'.$address['city'].', ' . $address['state'] .' ' . $address['zip'] . '[/av_gmap_location][/av_google_map]');
December 1, 2020 at 1:57 pm #1264234Bump (sorry for the bump – client needs this resolved)
December 1, 2020 at 3:55 pm #1264262Hi,
Thank you for the update.
This might not be working correctly because the site still contains an older version of the theme, v4.7.4. Please upgrade the theme to version 4.7.6.4, then toggle the Performance > File Compressions settings afterwards.
You might also have to add this filter to allow shortcode execution outside the Advance Layout Builder.
function avf_custom_exec_sc_only_mod( $exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake ) { return true; } add_filter( 'avf_alb_exec_sc_only', 'avf_custom_exec_sc_only_mod', 10, 6 );
Best regards,
IsmaelDecember 1, 2020 at 7:43 pm #1264307Hello Ismael,
Still no joy :-(
Any additional recommendations greatly appreciated.
Thanks!
December 4, 2020 at 5:15 am #1264939Hi,
Thank you for the inquiry.
The site is still using an older version of the theme, v.4.7.4. You may need to upgrade it to v4.7.6.4. Please post the FTP and WP login details in the private field if the issue persists after the update.
Best regards,
IsmaelDecember 4, 2020 at 4:16 pm #1265035Version 4.7.4 is not showing up as available in the Theme Update area, nor through the Envato Market plugin – in both areas it appears as up-to-date. Any idea when 4.7.4 will be added to the Envato Market repository?
December 7, 2020 at 4:10 pm #1265507Hi,
Thank you for the update.
The latest version is actually v4.7.6.4, which is now available on Themeforest. Please download it from the site or from your accounts panel and try to update the theme manually via FTP. The following documentation should help in case you are not familiar updating through FTP.
// https://kriesi.at/documentation/enfold/theme-update/#update-via-ftp
Best regards,
IsmaelDecember 7, 2020 at 6:19 pm #1265546Still no joy. I cleared the server cache as well, and am viewing incognito. The map simply won’t load when it used to prior to the cookie update. Is there a way that I can copy the necessary file over to my child theme and disable the cookie consent that way?
- This reply was modified 4 years ago by betaphase.
December 9, 2020 at 12:38 pm #1265972Hi,
Thank you for the update.
Have you tried to disable the cache and minification plugins? The header and the rest of the scripts are currently minified and it is possible that the site is still using the outdated version of the scripts.
Please post the login details in the private field so that we could check the site further. Make sure that the Appearance > Editor panel is accessible so that we could edit the files when necessary.
Best regards,
IsmaelDecember 15, 2020 at 11:21 am #1267429As it turns out, the owner of the website forgot to generate the lat/long coordinates after they added the real estate property. No coordinates = map fail, BUT – the Enfold theme was reporting that the user hadn’t allowed cookies. Thus the rabbit-hole investigation into cookie consent. Apologies for the inconvenience and the round-around. You may close this thread now. Thanks for your time.
December 15, 2020 at 11:28 pm #1267603Hi betaphase,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- The topic ‘Google Maps Shortcode issue in a non-GDPR country’ is closed to new replies.