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_action( 'gform_after_submission', 'gf_set_country_field_value', 10, 2 ); | |
/** | |
* Set the field value of the user country field | |
* | |
* @hook gform_after_submission | |
**/ | |
function gf_set_country_field_value( $entry, $form ) { | |
$ip = rgar( $entry, 'ip' ); |
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
.c-grid { | |
display: grid; | |
grid-template-columns: 50% 50%; | |
gap: 10px; | |
} | |
.c-grid--three { | |
grid-template-columns: 33% 33% 33%; | |
} | |
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="c-grid"> | |
<div> | |
<label> Name* | |
[text* your-name akismet:author autocomplete:name] </label> | |
</div> | |
<div> | |
<label> Email* | |
[email* your-email akismet:author_email autocomplete:email] </label> | |
</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
.wpcf7-styled { | |
padding: 25px; | |
background: #fafafa; | |
border-radius: 25px; | |
} | |
.wpcf7-styled .wpcf7-radio input[type="radio"] { | |
display: none; | |
opacity: 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
.wpcf7-styled { | |
padding: 25px; | |
background: #fafafa; | |
border-radius: 25px; | |
} |
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
<h4> About You </h4> | |
<label> Name* | |
[text* your-name akismet:author autocomplete:name] </label> |
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
<!-- Contact Form 7 Markup --> | |
<h4> About You </h4> | |
<div class="c-grid"> | |
<div> | |
<label> Name* | |
[text* your-name akismet:author autocomplete:name] </label> | |
</div> | |
<div> | |
<label> Email* | |
[email* your-email akismet:author_email autocomplete:email] </label> |
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
<style type='text/css"> | |
#gform_fields_6 { | |
list-style-type: none; | |
margin: 25px 0 0 0; | |
padding: 0; | |
display: flex; | |
flex-direction: column; | |
} | |
#gform_fields_6 .gfield--type-radio { |
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_shortcode( 'wp_doin_slider', 'wp_doin_slider_func' ); | |
/** | |
* @hook wp_doin_slider_func | |
*/ | |
function wp_doin_slider_func( $atts, $content = null ) { | |
?> | |
<script type="text/javascript"> | |
document.addEventListener('DOMContentLoaded', function() { |
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_shortcode( 'wp_doin_slider', 'wp_doin_slider_func' ); | |
/** | |
* @hook slider_test | |
*/ | |
function wp_doin_slider_func( $atts, $content = null ) { | |
$atts = shortcode_atts( | |
array( | |
'ids' => '1,2,3,4', |
NewerOlder