Tagged: enfold 4.3, google maps
-
AuthorPosts
-
April 30, 2018 at 11:56 am #949016
Hi,
Seemingly similar to thread #947125.
I have upgraded to Enfold v4.3 and now the google map widget I was using doesn’t show. I’m using a child theme with no general plugins or cache plugin etc. The issue is the same in Chrome and Firefox.
I thought it might be something to do with the API key so got a new one – which validates in the child theme Google Services tab.
I’ve tried changing the widget and re-saving but this doesn’t change anything.
The strange thing is that the map does show if you go to Widgets – Manage with Live Preview.
Any thoughts on why this is happening and how to fix it?
April 30, 2018 at 1:12 pm #949054For further info. in case it makes any difference, the upgrade was done by downloading v4.3 and uploading via ftp.
ThanksMay 1, 2018 at 8:53 am #949432Hi,
Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardMay 1, 2018 at 12:14 pm #949504This reply has been marked as private.May 2, 2018 at 6:03 am #949817Hello,
I have the same issue, please post the solution here when you get it fixed.
Thank you.
Regards,
pandaMay 2, 2018 at 6:43 pm #950206Same issue here. I resolved it desactivating the “Javascript file merging and compression” (when the map is in the page body) and desativating “Load jQuery in your footer” if the map is in widget.
May 3, 2018 at 12:52 am #950390Thanks arreguisergio. I’ve made sure that the ‘Javascript file merging and compression’ is deactivated but can’t see any options for the ‘Load jQuery in your footer’. Can you tell me where this is located?
ThanksMay 3, 2018 at 5:36 am #950458Hi db777,
The login detail you posted are not working, please check and verify. The Load jQuery in your footer is located under Enfold->Performance.
Best regards,
RikardMay 3, 2018 at 12:45 pm #950722Hi Rickard,
I’ve reset the login info – see private info below. I’ve double checked it and it works.
Regarding the ‘Load JQuery in your footer’ – I’m clearly missing something as I simply don’t see anything that says that in the Enfold Child – Performance tabs. I assume that this won’t be the issue anyway as the map is not in the footer but where exactly is this option? It’s not under any of the headings on that page – File compression, Disable Template Builder Elements, Disable Features.. none of them have it.
Thanks
May 3, 2018 at 6:15 pm #950987Hi,
I’ve just read the latest blog post about optimisation. In the second section 4 (Oops) there is an image for the performance tab with a section title ‘Change WordPress Defaults’. There are then four items that have checkboxes. My installation doesn’t have the ‘Disable JQuery Migrate’ nor the ‘Load JQuery in your footer’ items. Is this part of the same issue as the Google Map?
ThanksMay 4, 2018 at 10:33 am #951496Hi db777,
Can you please reupdate Enfold via FTP and see if the options appear?
Best regards,
VictoriaMay 4, 2018 at 9:16 pm #951872I’ve reloaded the Enfold theme via FTP. All files successfully transferred. Now installed is version 4.3.1.
There is absolutely no change. No Google Map on the Contact page of the website and the ‘Disable JQuery Migrate’ and ‘Load JQuery in your footer’ items are still missing from the Performance tab of Enfold Child on the back end.
To clarify, there are still no caching plugins and I’ve cleared the browser before trying the site.
- This reply was modified 6 years, 7 months ago by db777.
May 8, 2018 at 4:39 am #953044Hi db777,
I asked my colleagues to have a look.
This can be due to the code in your functions.php, why do you add the Google maps in there? There is no need for that.
Best regards,
VictoriaMay 8, 2018 at 3:20 pm #953408Hi,
The ‘enqueue_google_maps_with_key’ function in the functions.php file was added a couple of years ago to get everything to work at that point. The code would have come from this forum or the code snippets section of this site.
I’ve renamed the file by appending _old’ and put a clean functions.php in the child theme. I’ve left the Google Maps API key in the Enfold child theme settings.
Absolutely no change to either the map or the Enfold Child – Performance tab.
May 9, 2018 at 11:39 am #953827Hey!
I was told that is no plugins are not enabled, the jQuery loads in the footer by default and so that option is invisible.
Best regards,
VictoriaMay 9, 2018 at 11:48 am #953834Okay, that’s fine. However, the original issue (and arguably more important one given it’s to the outside world) remains that the Google Map doesn’t load. What is the solution?
Thanks for your help.
May 9, 2018 at 1:29 pm #953910I’ve finally managed to get the map working – sort of. I had to delete the map I had, which was inside of a widget in a custom widget area, and create a new Google Map Media Element and firstly fetch the coordinates based on an address – then after saving it I went back in and changed the co-ordinates to the correct ones. It doesn’t explain though why it doesn’t work inside of a widget – any thoughts?
- This reply was modified 6 years, 7 months ago by db777.
May 10, 2018 at 6:43 am #954365Hi db777,
Now you can enable the Advanced Layout Builder debug mode, get the code for the map and try to paste it to the widget area.
Best regards,
VictoriaMay 15, 2018 at 5:41 pm #957132Hi, Thanks Victoria. I’ve re-made the widget using the shortcodes as suggested. This works!
Very strange – the Enfold widget doesn’t and this shortcode version and the one off version do work. In case Keisi or someone elase wants to look I’ve done a private test page (‘Google Map Tests’) that has both the Enfold Google Map widget and the one generated by the shortcodes (login credentials given previously still work).Otherwise that covers it for now, thanks.
May 18, 2018 at 5:56 am #958435Hi,
The map widget script renders right before jquery loads. We had to add this code in the functions.php file.
if (!is_admin()) add_action("wp_enqueue_scripts", "avf_jquery_enqueue", 11); function avf_jquery_enqueue() { wp_deregister_script('jquery'); wp_register_script('jquery', "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js", false, null, false); wp_enqueue_script('jquery'); }
See private field.
Best regards,
IsmaelMay 21, 2018 at 11:40 pm #960058I have the same problem after Enfold Update 4.3.2 – Are there any solutions?
Thanks,
Thorsten- This reply was modified 6 years, 6 months ago by _TBO_.
May 22, 2018 at 12:31 am #960070Problem could be solved. Generate new Google Api-Key, map is displayed. I hope it stays that way
May 22, 2018 at 6:47 pm #960474Ismael – Out of interest, is the additional code needed for all Enfold installs or just for my site / set up?
_TBO_ / Thorsten – I’m glad that the new API key worked. If it fails again the work arounds described above (single map on a page then shortcodes copied in to the widget, or Ismael’s code) all worked for me.
May 23, 2018 at 5:52 pm #961029Hi,
I haven’t tested it on any other site aside from yours so I’m not sure if it is actually required. Please keep it for now. Do you have other sites with the same issue?
Best regards,
IsmaelMay 24, 2018 at 4:32 pm #961659Hi Ismael,
No, just this site.May 28, 2018 at 6:40 am #962943 -
AuthorPosts
- You must be logged in to reply to this topic.