WordPress.org

Forums

Easy Modal
[resolved] Gravity forms css not being called (4 posts)

  1. stueynet
    Member
    Posted 1 year ago #

    I have added a gravity forms shortcode into the modal but on the page, it does not load the gravity forms css file. What am I doing wrong?

    http://wordpress.org/plugins/easy-modal/

  2. danieliser
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for the inconvenience.

    Check this out. http://www.gravityhelp.com/documentation/page/Gform_enqueue_scripts

    This is being automated for upcoming v1.3 but currently you need to do something like this in your functions.php

    If its sitewide then you can skip the if(is_page()) check.

    function custom_gf_scripts()
    {
      if(is_page(61) || is_page('home'))
      {
         $form_id = 6;
         $is_ajax = true;
         gravity_form_enqueue_scripts($form_id, $is_ajax);
      }
    }
    add_action('wp_head',custom_gf_scripts, 5);
  3. stueynet
    Member
    Posted 1 year ago #

    Ok great. Yeah I did that but sadly thats a bit beyond clients abilities. So you are going to fix your plugin so that it fully processes the shortcodes for GF. Thanks!

  4. danieliser
    Member
    Plugin Author

    Posted 1 year ago #

    Yes it is already being tested. I found the bug recently when i got my own official copy of Gravity Forms and began to implement it became clear.

    I have planned and tested a fix but it requires quite a few changes so its not something i can just push out quite yet.

    v1.3 should be out no later than the first week of October.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Modal
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic