Plugin Directory

Changeset 1226380


Ignore:
Timestamp:
08/20/2015 04:58:41 PM (11 years ago)
Author:
maxchirkov
Message:

Adds troubleshooting for duplicate Google Maps API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-real-estate-pack-4/trunk/readme.txt

    r1226366 r1226380  
    196196== Frequently Asked Questions ==
    197197
     198= Yelp Places do not get rendered on the map =
     199
     200Simple Real Estate Pack loads Google Maps API. Sometimes a theme or another plugin can load a copy of the same API on their own, which can create a conflict.
     201If there's a JavaScript error in your browser's console similar to this: "You have included the Google Maps API multiple times on this page. This may cause unexpected errors."
     202You can unload SREP's Google Maps API by pasting the following code into your theme's functions.php file:
     203
     204`<?php
     205add_action('wp_print_scripts', 'remove_SREP_googleMapsAPI', 100);
     206
     207function remove_SREP_googleMapsAPI()
     208{
     209    wp_dequeue_script( 'google-maps-api-v3' );
     210}
     211?>`
     212
     213Clear your browser cache and reload the page.
     214
    198215**If something doesn't work, please try to troubleshoot the issue by checking is any JavaScript errors are reported. Also, try disabling other plugins and leave the SRP enabled just to make sure there are no conflicts.**
    199216
Note: See TracChangeset for help on using the changeset viewer.