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"> | |
jQuery(document).ready(function( $ ){ | |
$('.gfq-badge').click(function() { | |
$('.gfq-panel').toggleClass('panel-active'); | |
}); | |
}); | |
</script> |
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
.gfq-wrap { | |
z-index: 9999999; | |
position: fixed; | |
bottom: 40px; | |
right: 40px; | |
} | |
.gfq-badge { | |
background: #71C28E; /*Change this colour to change the circle*/ | |
width: 60px; | |
height: 60px; |
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
<div class="gfq-wrap"> | |
<div class="gfq-panel"> | |
<!--Change to the form ID of your form below--> | |
<!--[gravityform id="66" title="false" description="false" ajax="true"]--> | |
</div> | |
<div class="gfq-badge"> | |
<img src="https://jetsloth.com/wp-content/uploads/2019/02/mail-1.svg" alt="Icon"/> | |
</div> | |
</div> |
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
/*/////////////////////////////////Slide-out-gravity-forms.css/////////////////////////////////*/ | |
/* Full article here https://jetsloth.com/gravity-forms/create-a-slide-out-gravity-forms-widget/ */ | |
.gfq-oc-wrap { | |
z-index: 9999999; | |
position: fixed; | |
bottom: 0px; | |
right: 0px; | |
height: 100%; | |
} | |
.gfq-oc-wrap .gfq-badge { |
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
jQuery('body').on('gf-color-picker:picked', function(e, hex, ref){ | |
// do whatever you want here. | |
// hex will be... hex | |
// ref will be the formID_fieldID string | |
}); |
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
<div class="update-preview gfcp_bg"> | |
<h2>My heaidng inside my banner</h2> | |
</div> |
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%; | |
width: 100%; | |
} | |
.image-choices-field, | |
.gform_wrapper .gfield.image-choices-field { | |
margin-right: -3%; | |
} | |
.image-choices-field .image-choices-choice, | |
.gform_wrapper .gfield.image-choices-field li.image-choices-choice { |
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 { | |
display: block; | |
max-width: 100%; | |
width: 100%; | |
} | |
.image-choices-field .gfield_label { | |
font-size: 2em; | |
margin-bottom: 1em; | |
display: block; | |
text-align: center; |
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
////////////////////////////////////////////////////////////////// | |
// Latest Posts in Gravity Forms email notifications - https://jetsloth.com/labs/how-to-add-post-articles-to-your-gravity-forms-email-notifications/ | |
////////////////////////////////////////////////////////////////// | |
function custom_email_latest_posts_shortcode( $atts, $content = null ) { | |
$content = do_shortcode( shortcode_unautop( $content ) ); | |
if ( '</p>' == substr( $content, 0, 4 ) | |
&& '<p>' == substr( $content, strlen( $content ) - 3 ) ) | |
$content = substr( $content, 4, strlen( $content ) - 7 ); | |
$output = ''; |