This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Bootstrap 3 input group form for Gravity Forms | |
* | |
* Use with a class assigned to the form | |
* or on .gform to affect all Gravity forms | |
* | |
* Example 1 (affects targeted form class only): .my-form-class { &:extend(.gravity_form_input_group all); } | |
* | |
* Example 2 (affects all Gravity Forms): .gform { &:extend(.gravity_form_input_group all); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Bootstrap 3 reset for Gravity Forms | |
* | |
*/ | |
.gform_wrapper { | |
ul { | |
&:extend(.list-unstyled all); | |
margin: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Bootstrap 3 reset for CF7 | |
* | |
*/ | |
input, textarea { | |
&.wpcf7-form-control { | |
&:extend(.form-control all); | |
&.wpcf7-validates-as-required.wpcf7-not-valid { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Bootstrap 3 input group form for Contact Form 7 | |
* | |
* In the shortcode, you must use html_id="my-id" | |
* or html_class="my-class" to target a specific form | |
* | |
* Actual form sample: | |
* <label for="your-email">Email:</label> | |
* [email* your-email 0/ placeholder "enter your email"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Bootstrap 3 inline form for Contact Form 7 | |
* | |
* In the shortcode, you must use html_id="my-id" | |
* or html_class="my-class" to target a specific form | |
* | |
* Actual form sample: | |
* <label for="your-email">Email:</label> | |
* [email* your-email 0/ placeholder "enter your email"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Bootstrap 3 inline form *full width* for CF7 | |
* | |
* In the shortcode, you must use html_id="my-id" | |
* or html_class="my-class" to target a specific form | |
* | |
* Actual form sample: | |
* <label for="your-email">Email:</label> | |
* [email* your-email 0/ placeholder "enter your email"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('gform_confirmation_anchor', '__return_false'); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function populate_gravity_forms($field) { | |
echo '<h1>acf/load_field filter debug within populate_gravity_forms()</h1>'; | |
if(class_exists('RGFormsModel')) { | |
$forms_array = array(); | |
$forms = RGFormsModel::get_forms(null, 'title'); | |
foreach($forms as $form) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Assumes: | |
* 1. You have a FCF field called 'sections' | |
* 2. Each FCF block has a text sub field called 'section-title' | |
* | |
*/ | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function localize_ajax_variables() { | |
wp_localize_script('your_js', 'wp_ajax_vars', array( | |
'admin_url' => admin_url('admin-ajax.php') | |
)); | |
} | |
add_action('wp_enqueue_scripts', 'localize_ajax_variables', 999); |