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_action( 'after_setup_theme', 'vmf_gutenberg_color_palette' ); | |
function vmf_gutenberg_color_palette() { | |
add_theme_support( | |
'editor-color-palette', array( | |
array( | |
'name' => esc_html__( 'Pale pink', '@@textdomain' ), | |
'slug' => 'pale-pink', | |
'color' => '#f78da7', |
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 Name: Create Thank You form Entries | |
Description: Creates one entry in Thank You form for each winner recorded in repeatable field section of invoice form. | |
Version: 1.0 | |
Author: Victor M. Font Jr. | |
Author URI: https://victorfont.com/ | |
*/ | |
/* add the action at a higher priority than 41 so it executes after Zaperi add-on */ |
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( 'genesis_seo_title', 'child_header_title', 10, 3 ); | |
function child_header_title( $title, $inside, $wrap ) { | |
$inside = sprintf( '<a href="https://example.com/" title="%s">%s</a>', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) ); | |
return sprintf( '<%1$s class="site-title">%2$s</%1$s>', $wrap, $inside );; | |
} |
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 | |
/* ACF Blocks requires ACF Pro Ver. 5.8 or higher */ | |
/* save this file to /lib/ directory in your child theme folder */ | |
/* if the directory doesn't exist, create it */ | |
function vfcg_register_blocks() { | |
if( ! function_exists('acf_register_block') ) | |
return; | |
acf_register_block( array( |
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
/* initialize the repeater for every added row */ | |
$( document ).ajaxComplete( function( event, xhr, settings ) { | |
var complete_event = jQuery.makeArray(event); | |
var active_elem = complete_event[0]['target']['activeElement']['dataset']['parent'], | |
repeater_section = [active_elem]; | |
if (active_elem == '511') { | |
repeater_row_init( repeater_section ); |
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
<div id="frm_field_[id]_container" class="frm_form_field frm_section_heading form-field[error_class]"> | |
<h3 class="frm_pos_[label_position][collapse_class]" tabindex="0">[field_name]</h3> | |
[if description]<div class="frm_description">[description]</div>[/if description] | |
[collapse_this] | |
</div> |
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 | |
wp_enqueue_scripts( 'numeral-script', get_stylesheet_directory_uri() . '/js/numeral.min.js', array( '' ), '1.0.0', true ); |
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( 'roman_copyright', 'roman_copyright_shortcode' ); | |
/* to use the shortcode, insert this into the footer | |
[roman_copyright before="Copyright " first="2003" after=" Victor M. Font Jr."] | |
*/ |
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
<script> | |
jQuery(document).ready(function($) { | |
"use strict"; | |
$("#field_xxxxxx").keydown(function () { | |
var _val = $(this).val(), | |
_txt = _val.charAt(0).toUpperCase() + _val.slice(1); | |
$(this).val(_txt); | |
}) | |
}); |