This file contains hidden or 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 vmf_my_custom_class( $attributes ) { | |
if ( is_single() ) { | |
$attributes['class'] = $attributes['class'] . ' my-custom-class'; | |
} | |
return $attributes; | |
} | |
add_filter( 'genesis_attr_entry-content', 'vmf_my_custom_class' ); |
This file contains hidden or 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
.g-recaptcha { | |
transform-origin: left top; | |
-webkit-transform-origin: left top; | |
} |
This file contains hidden or 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 multiple fields to Formidible standard dropdowns */ | |
add_filter('frm_setup_new_fields_vars', 'customize_dfe', 25, 2); | |
function customize_dfe( $values, $field ) { | |
if( $field->id == 125 ){ //Replace 125 with the ID of your data from entries field | |
global $frm_field; | |
$values['form_select'] = 3441; | |
$field4_opts = FrmProFieldsHelper::get_linked_options( $values, $field ); | |
$values['form_select'] = 3428; |
This file contains hidden or 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-flex { | |
display: flex; | |
flex-direction: row; | |
flex: 1; | |
flex-wrap: nowrap | |
} | |
.monday, | |
.tuesday, | |
.wednesday, |
This file contains hidden or 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 to body tag css */ | |
padding: constant(safe-area-inset-top) constant(safe-area-inset-right) constant(safe-area-inset-bottom) constant(safe-area-inset-left); |
This file contains hidden or 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 | |
remove_action( 'genesis_site_title', 'genesis_seo_site_title' ); | |
remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); | |
add_action( 'genesis_site_title', '__return_null' ); | |
add_action( 'genesis_site_description', '__return_null' ); |
This file contains hidden or 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(document).ready(function($) { | |
"use strict" | |
$("[id^=field_o8v4sw-]").on("change", function() { //source field key | |
var sourceField = $(this).val(), | |
barcodeid = $(this).attr("id"), | |
index_number = barcodeid.substr(barcodeid.lastIndexOf("-")+1), | |
destination_field = "#field_6qubt-" + index_number; | |
$(destination_field).val(sourceField); //destination field key |
This file contains hidden or 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( 'wp_mail_content_type', 'set_content_type' ); | |
function set_content_type( $content_type ) { | |
return 'text/x-gm-impdata'; | |
} |
This file contains hidden or 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( 'word_count', 'word_count' ); | |
function word_count() { | |
return sprintf( __( '%s words', 'text-domain' ), str_word_count( strip_tags( get_post_field( 'post_content', get_the_ID() ) ), 0 ) ); | |
} | |
add_filter( 'genesis_post_info', 'custom_post_info_filter' ); | |
function custom_post_info_filter( $post_info ) { | |
if ( is_singular( 'post' ) ) { |