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
/* | |
* @function Automatically call custom functions in Generateblocks Dynamic Data | |
* @author Taylor Drayson | |
* @since 22/09/2022 | |
* | |
* Replace $key with your unique prefix for all custom functions | |
*/ | |
add_filter( 'generateblocks_dynamic_content_output', function( $content, $attributes ) { | |
if ( 'post-meta' === $attributes['dynamicContentType'] && isset( $attributes['metaFieldName'] ) ) { |
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 | |
/* | |
Instructions | |
Replace YOUR_ACF_FIELD with the name of your acf select dropdown key | |
Add to functions.php or code snippets plugin | |
Forms will load sorted by Title in ASC order (A to Z) | |
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 class 'dropzone' to the upload fields that you would like to have this styling | |
*/ | |
.fluentform .dropzone .ff_upload_btn.ff-btn { | |
color: #646c7f; | |
padding: 3rem; | |
width: 100%; | |
border: 2px dashed #0087f7; | |
border-radius: 5px; | |
background: rgba(223, 240, 255, 0.13); |
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
/* Start of Payment Summary Table CSS */ | |
@media only screen and (max-width: 530px) { | |
.fluentform .ffp_table thead{ | |
display:none; | |
} | |
.fluentform table{ | |
display: block; | |
} |
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
/** | |
* Styles the Radio field as clickable image for Fluent Forms | |
* | |
* Use: Paste into Custom CSS Section of your Form | |
* Add class "fancy-input" to container of all inputs that need the fancy styling | |
* | |
* Forked version of Sebastian Berger from inital post Fluent Forms FB Group - https://bit.ly/37BBpet | |
* FB Post - https://bit.ly/2ZEn2BG | |
* | |
* Full Links at bottom |
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 the function to advanced scripts (or code snippet) | |
// Create a condition in the builder to the section where you want to hide | |
// Select dynamic data -> php function -> “Check_CPT_Repeater” | |
// Inside the arguments section add your "cpt_name" and post object "acf_field" | |
// Set dynamic data == 0 (to hide if no results are returned) | |
function Check_CPT_Repeater( $cpt_name, $acf_field ){ | |
//WP_Query arguments | |
$args = array( |
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
//Set the repeater to 100% width | |
// Set display:block | |
// Add the below to custom css in repeater | |
-webkit-column-count: 4; | |
-moz-column-count: 4; | |
column-count: 4; | |
// Set Div inside repeater to display:block | |
//Add the below to the custom css |
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
// remove update notice for forked plugins | |
function remove_update_notifications($value) { | |
if ( isset( $value ) && is_object( $value ) ) { | |
unset( $value->response[ plugin_basename(__FILE__) ] ); | |
} | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'remove_update_notifications' ); |
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 Overlay on Hover*/ | |
.image-overlay{ | |
position: relative; | |
cursor: pointer; | |
} | |
.text-colour a{ | |
color:black; | |
} | |
.image-overlay:after { | |
content: ""; |
NewerOlder