PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How do I change GF JS directory in header?

  1. simonh
    Member

    For some reasonin the header, for the JS src wp_head() is returning:
    site.com/sub_dir1/wp_root/sub_dir1/wp_root/wp-content/plugins/graviftyforms/js/gravityforms.js

    instead of:
    site.com/sub_dir1/wp_root/wp-content/plugins/graviftyforms/js/gravityforms.js

    IE "/sub_dir1/wp_root" is repeated in the path.

    It does the same for conditional_logic.js

    This is obviously impacting the forms functionality.

    Is there a simple way for me to script src change the path somewhere / somehow?

    Thanks.

    Posted 11 years ago on Wednesday August 29, 2012 | Permalink
  2. simonh
    Member

    So team GF how do I change this?

    Posted 11 years ago on Wednesday September 5, 2012 | Permalink
  3. I think I would first begin by checking for theme and plugin conflicts, as this does not normally occur. You can follow these instructions http://rkt.gs/testing

    I suppose you could dequeue the scripts and then enqueue them again, in the 'wrong' location, but that seems like a hack that should be unnecessary. Here are the WordPress functions you would need to use in case you go that route:

    http://codex.wordpress.org/Function_Reference/wp_dequeue_script
    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    Posted 11 years ago on Wednesday September 5, 2012 | Permalink