Home>Support>Possible conflict with Gravity Forms and Google Maps Widger

Possible conflict with Gravity Forms and Google Maps Widger

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

When we set the map above the Gravity Form everything works as expected,

However when the map is below the Gravity Form there is a “jQuery is not defined” error generated.

You assistance with solving this would be appreciated, both set-ups are available if required.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 5 months ago CMEDigital

    Through speaking with Rocketgenius the following changes worked:

    1) Add the following filter to your theme’s functions.php

    add_filter(“gform_init_scripts_footer”, “init_scripts”);
    function init_scripts() {
    return true;
    }

    2) Disable the script output from the advanced options

  2. 10 years, 5 months ago Greg Priday
    Hi, I Work Here

    Hi CMEDigital

    Glad to hear you found a solution. Just a few suggestions with that code:

    1. All custom code should be added to a child theme rather than the theme’s functions.php. Any changes you make here will be overwritten when you update Vantage.

    http://codex.wordpress.org/Child_Themes

    2. All custom code you add to your child themes should be prefixed with vantage_child or something equivalent. This will prevent any possible conflicts with other plugins.

    function vantage_child_gravity_init_scripts() {   return true;}add_filter("gform_init_scripts_footer", "vantage_child_gravity_init_scripts");
Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More