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_pre_render', 'populate_enhanced_choices_from_posts' ); | |
add_filter( 'gform_pre_validation', 'populate_enhanced_choices_from_posts' ); | |
add_filter( 'gform_pre_submission_filter', 'populate_enhanced_choices_from_posts' ); | |
add_filter( 'gform_admin_pre_render', 'populate_enhanced_choices_from_posts' ); | |
function populate_enhanced_choices_from_posts( $form ) { | |
// update form and field ID to suit | |
$FORM_ID = 1; |
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_pre_render', 'populate_gf_color_choices' ); | |
add_filter( 'gform_pre_validation', 'populate_gf_color_choices' ); | |
add_filter( 'gform_pre_submission_filter', 'populate_gf_color_choices' ); | |
add_filter( 'gform_admin_pre_render', 'populate_gf_color_choices' ); | |
function populate_gf_color_choices( $form ) { | |
if ( $form['id'] != 9999 ) {// set to the form id you want to run this on |
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
.image-choices-field { | |
max-width: 100%; | |
margin-right: -3%; | |
} | |
.image-choices-field .image-choices-choice, | |
.gform_wrapper .gfield.image-choices-field li.image-choices-choice { | |
display: inline-block; | |
position: relative; | |
padding: 13px !important; | |
overflow: visible; |
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
<script type="text/javascript"> | |
(function($){ | |
$(document).bind('gform_post_render', function(e, formId, currentFormPage) { | |
var formSelector = '#gform_' + formId; | |
var $form = $(formSelector); | |
if ( $form.data('configurator-init') !== true ) { | |
// Add the preview layers | |
$(formSelector + ' .gform_body .gfield.image-choices-field.config-layer').each(function(i, el){ |
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_pre_render', 'custom_image_choices_size' ); | |
add_filter( 'gform_pre_validation', 'custom_image_choices_size' ); | |
add_filter( 'gform_pre_submission_filter', 'custom_image_choices_size' ); | |
add_filter( 'gform_admin_pre_render', 'custom_image_choices_size' ); | |
function custom_image_choices_size( $form ) { | |
foreach ( $form["fields"] as &$field ) { | |
if ( property_exists($field, "imageChoices_enableImages") && !empty($field->imageChoices_enableImages) ) { |
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
/*////////////////////////// Color Variables //////////////////////////*/ | |
:root { | |
/*Purple*/ | |
--theme1: #7245F1; | |
--theme1-light: #F0ECFD; | |
/*Orange*/ | |
--theme2: #FFA630; | |
--theme2-light: #FFF7EC; | |
/*Blue*/ | |
--theme3: #0076FF; |
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
/*Below will apply the chose wiggle effect to the submit button.*/ | |
/*Just change the animation type to the wiiggle effect you want, wiggle1,wiggle2,wiggle3,wiggle4.*/ | |
.gform_button.button { | |
animation: wiggle1 1.5s ease-in infinite; | |
} | |
/*CSS Wiggle 1*/ | |
@keyframes wiggle1 { | |
0%, 7% {transform: rotateZ(0);} | |
15% {transform: rotateZ(-13deg);} |
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
/*Add animated CSS gradient to your form background*/ | |
.gradient_wrapper { | |
background: linear-gradient(45deg, #2455EB, #24DDEB, #59EB24); | |
background-size: 600% 600%; | |
animation: GradientBackground 9s ease-in infinite; | |
border:none!important; | |
} | |
@keyframes GradientBackground { | |
0% { |
NewerOlder