Skip to content

Instantly share code, notes, and snippets.

View rgadon107's full-sized avatar

Robert Gadon rgadon107

  • St. Louis, MO USA
View GitHub Profile
@rgadon107
rgadon107 / gist:bf504a9fbcc8c11da3a02f6620746f84
Created June 27, 2017 19:35
Popup Maker Code Snippet - Footer Script to Reclick Last Clicked Link
<?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 July 11, 2017 18:13
Popup Maker Code Gist for theme functions.php file for 'royaltruckandequipment.com'
<?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'); });
<?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 February 6, 2017 02:19
Archive template file for the Tours custom post type.
<?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 February 4, 2017 20:40
Custom Post Type functionality generated for 'Tours' custom post type plugin.
<?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+
*/
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 July 29, 2016 02:01
Change the 'Read More...' links in WP core & Genesis; Post columns grid patterns to allow 2 - 6 grid columns.
<?php
namespace albemishpc\post;
/**
* Post structure handling.
*
* @package Utility Pro\post
*
* @since 1.0.0
*
@rgadon107
rgadon107 / header.php
Created July 1, 2016 00:30
Child theme customizations to the site header area in `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
@rgadon107
rgadon107 / front-page.php
Created July 1, 2016 00:23
Excerpt of child theme `front-page.php` file, demonstrating setup of home page widgets
<?php
namespace albemishpc\front_page;
/**
* Front page for the Utility Pro theme
*
* @package Utility_Pro
* @author Carrie Dils
* @license GPL-2.0+
*/
<h2 class="before-entry-content entry-subtitle" itemprop="sub-headline"><?php echo $subtitle; ?></h2>