Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Gadon rgadon107

View GitHub Profile
@rgadon107
rgadon107 / gist:ce4809abc9a4e776bb82dd00a3ff07eb
Last active Nov 9, 2017
Reopen a popup on form submission | url: https://techtalentcharter.co.uk/ | Popup Maker Ticket #5981
View gist:ce4809abc9a4e776bb82dd00a3ff07eb
<?php
add_action( 'wp_footer', 'pum14_popup_reg_form_check', 1000 );
/*
* Reopen popup on form submission
*
* @since 1.0.0
*
* @return void
*/
function pum14_popup_reg_form_check() {
@rgadon107
rgadon107 / Set Cookie on Form Submit and Close
Created Jul 19, 2017
Custom function to pass in a jQuery script to set a cookie via manual JS during 'on_click' trigger event and on form close.
View Set Cookie on Form Submit and Close
@rgadon107
rgadon107 / gist:bf504a9fbcc8c11da3a02f6620746f84
Created Jun 27, 2017
Popup Maker Code Snippet - Footer Script to Reclick Last Clicked Link
View gist:bf504a9fbcc8c11da3a02f6620746f84
<?php
add_action( 'wp_footer', 'my_custom_popup_scripts', 500 );
/**
* Reclick the last clicked link upon form submission.
*
* @since v1.0.0
*
* @return void
*/
@rgadon107
rgadon107 / gist:72f5aec2ee74fb4dcfe81b63a49ef6e0
Last active Jul 11, 2017
Popup Maker Code Gist for theme functions.php file for 'royaltruckandequipment.com'
View gist:72f5aec2ee74fb4dcfe81b63a49ef6e0
<?php
add_action( 'wp_footer', 'my_custom_popup_scripts', 500 );
function my_custom_popup_scripts() { ?>
<script type="text/javascript">
(function ($, document, undefined) {
$('#popmake-2686 .pum-content a').click(function (e) { $('#popmake-2686').trigger('pumSetCookie'); });
View theme-assets.php
<?php
/**
* Enqueue child theme assets.
*
* @package yogaStLouis\utilityPro\Functions
* @link http://www.carriedils.com/utility-pro
* @author Carrie Dils
* @copyright Copyright (c) 2015, Carrie Dils
* @license GPL-2.0+
*/
@rgadon107
rgadon107 / archive-tours.php
Last active Feb 6, 2017
Archive template file for the Tours custom post type.
View archive-tours.php
<?php
/**
* Archive template file for the Tours custom post type
*
* @package spiralWebDB\GenesisDeveloper
*
* @since 1.0.2
*
* @author Robert A. Gadon
*
@rgadon107
rgadon107 / custom-post-type.php
Last active Feb 4, 2017
Custom Post Type functionality generated for 'Tours' custom post type plugin.
View custom-post-type.php
<?php
/**
* Custom Post Type functionality
*
* @package spiralWebDb\JourneysWithJeffHoag
* @since 1.0.0
* @author Robert A Gadon
* @link https://spiralwebdb.com
* @license GNU General Public License 2.0+
*/
View Add blog title at `.content-sidebar-wrap`
add_action('genesis_before_content', 'ystl_add_blog_title');
/**
* Add 'Yoga St. Louis Blog' title to 'genesis_before_content' hook.
*
* @since 1.0.0
*
* @param string $title HTML markup of blog title
*
* @return string Add title before blog on front page or archive post page.
*
@rgadon107
rgadon107 / post.php
Last active Jul 29, 2016
Change the 'Read More...' links in WP core & Genesis; Post columns grid patterns to allow 2 - 6 grid columns.
View post.php
<?php
namespace albemishpc\post;
/**
* Post structure handling.
*
* @package Utility Pro\post
*
* @since 1.0.0
*
@rgadon107
rgadon107 / header.php
Created Jul 1, 2016
Child theme customizations to the site header area in `header.php`
View header.php
<?php
namespace albemishpc\header;
/**
* Customizations to the site header area within the Utility Pro child theme.
*
* @package Utility Pro\header
*
* @since 1.0.0
You can’t perform that action at this time.