In Genesis Lovers Skype group, a user wrote:
@sridhar if you're looking to create a tutorial, one on how to create this drop down form from the menu would be awesome. :) http://blog.brennancorp.com/
In this article I share the steps for automatically adding a custom link in Primary Navigation which when clicked slide toggles a Gravity Forms form. The code can easily be tweaked to show just about any HTML/PHP code in the hidden toggle container.
Step 1
Create a file named say, global.js in your child theme's js
directory having the following code:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Hi Sridhar, this looks like a great tutorial and I can’t wait to get it going BUT when I implement it I am getting an error s follows:
“Warning: Missing argument 2 for sk_gf_link() in /home/disabilitycredit/public_html/test/wp-content/themes/altitude-pro/functions.php on line 440”
Any idea how to fix this?
add_filter( 'wp_nav_menu_items', 'sk_gf_link' );
should be
add_filter( 'wp_nav_menu_items', 'sk_gf_link', 10, 2 );
[…] This is based on the earlier tutorial titled How to slide toggle Gravity Forms form by clicking a link/button in Primary Navigation in Genesis. […]
Awesome feature, but I have some troubles getting it working on my homepage and Woocommerce. The form disappears behind some content.
Any fix?
Can you provide the URL of your site?
This seems to work great except that the form drops down and then collapses immediately. Users can’t do anything with it.
wpconsulting.bobkeller.me
Can you export the GF form, upload that zip file somewhere and share it so I can test?
Sent you a link to a Google Drive folder via your contact form.
Thanks
Received it.
I imported it into my test site running Showcase Pro and it worked fine. Please take a look here: http://dev-for-bob-keller.pantheonsite.io/ (Ignore the error message about Recaptcha. I entered the keys from a old and different website, just for testing this out).
Here are the modified files. js/global.js: http://pastebin.com/raw/Qwnbcirt, functions.php: http://pastebin.com/raw/mazTi5mP, style.css: http://pastebin.com/raw/U9j7zxSt
I can give you a link to download the export file of this website so you can restore it on your localhost or elsewhere, compare with yours and see what is different.
Yeah, I must have made a dumb mistake when I was copying and pasting the first time, I just started all over and now it works fine. Thanks for your help.