Skip to content

Instantly share code, notes, and snippets.

Victor M. Font Jr. vfontjr

Block or report user

Report or block vfontjr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vfontjr / remove_category_from_crumb_url.php
Created Nov 20, 2019
Remove /catagory/ from Genesis breadcrumbs URL
View remove_category_from_crumb_url.php
add_filter( 'genesis_post_crumb', 'remove_category_from_crumb_url', 10, 3);
function remove_category_from_crumb_url( $crumb, $args, $cat_crumb ) {
$crumb = str_replace("/category/","/",$crumb);
return $crumb;
vfontjr / page-break-button.css
Last active Sep 17, 2019
Masterminds: Change Page Break Button Color
View page-break-button.css
.frm_form_fields.frm_page_num_1 .frm_submit input {
color: #2b792b;
border-color: #2b792b;
.frm_form_fields.frm_page_num_1 .frm_submit input:hover,
.frm_form_fields.frm_page_num_1 .frm_submit input:focus {
background-color: #2b792b;
color: #fff;
border-color: #fff;
vfontjr / example-multidimensional-input-field-name.html
Last active Sep 6, 2019
Formidable Masterminds - Repeaters and Complex jQuery Operations
View example-multidimensional-input-field-name.html
<input type="text" id="field_97w00-0" name="item_meta[87][0][89]" value="" data-invmsg="Text is invalid" data-sectionid="87">
vfontjr / button-at-top.css
Last active Sep 5, 2019
Formidable Masterminds - Move Submit Button to Top of Form
View button-at-top.css
.button-at-top {
position: absolute;
top: 0;
left: 0;
right: 0;
vfontjr / capitalize-first-letter.js
Last active Sep 1, 2019
Capitalize first letter of Formidable Form field
View capitalize-first-letter.js
jQuery(document).ready(function($) {
"use strict";
$("#field_xxxxxx").keydown(function () {
var _val = $(this).val(),
_txt = _val.charAt(0).toUpperCase() + _val.slice(1);
vfontjr / add_shortcode.php
Last active Aug 23, 2019
Convert Integers to Roman Numerals
View add_shortcode.php
<? 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."]
vfontjr / load_script1.php
Last active Aug 1, 2019
View load_script1.php
wp_enqueue_script( 'numeral-script', get_stylesheet_directory_uri() . '/js/numeral.min.js', array( '' ), '1.0.0', true );
vfontjr / collapsible-section-after.html
Last active May 16, 2019
Add Keyboard Accessibility to Formidable Forms Collapsible Sections
View collapsible-section-after.html
<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]
View ajaxComplete-reinit-code.js
/* 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 );
vfontjr / acf_blocks.php
Last active Apr 16, 2019
Source Code for Custom Gutenberg Blocks w/ Advanced Custom Fields Blocks Feature
View acf_blocks.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') )
acf_register_block( array(
You can’t perform that action at this time.