Skip to content

Instantly share code, notes, and snippets.

View AlphaBlossom's full-sized avatar

Tony Eppright AlphaBlossom

View GitHub Profile
@AlphaBlossom
AlphaBlossom / remove-email-url-fields-comments.php
Last active August 29, 2015 14:06
Remove Email and URL Fields from WordPress comments form
<?php
//* Do NOT include the opening php tag
/**********************************
*
* Filter Comments Form
* Remove Email and URL Fields
*
* @author AlphaBlossom / Tony Eppright
* @link http://www.alphablossom.com
@AlphaBlossom
AlphaBlossom / logo-centered-navigation-menu.css
Last active March 4, 2022 16:32
Logo Centered on Navigation Menu
/**********************************
*
* Add a centered logo to the Genesis Navigation Menu
* using CSS only
*
* @author AlphaBlossom / Tony Eppright
* @link http://www.alphablossom.com
*
************************************/
/*
@AlphaBlossom
AlphaBlossom / cpt-nav-add-current-menu-item.php
Last active August 29, 2015 14:06
Change Nav Menu on CPT to Highlight CPT instead of Blog
<?php
//* Do NOT include the opening php tag
/**********************************
*
* Adds "current-menu-item" to CPT Nav
*
* @author AlphaBlossom / Tony Eppright
* @link http://www.alphablossom.com
*
@AlphaBlossom
AlphaBlossom / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@AlphaBlossom
AlphaBlossom / idx-broker-single-listing-header.html
Last active August 29, 2015 14:22
IDX Broker Single Listing Sub Header Variables Example
<!-- Example displaying Address and MLS# in H1 tag and property type and county in H2
This should be added using the HTML view in the IDX admin editor.
The class="entry-title" should be changed to match the class used in your theme. This
example is for a Genesis child theme. -->
<h1 class="entry-title">{{address}}, {{cityName}}, {{state}} {{zipcode}} (MLS# {{listingID}})</h1>
<h2>{{propType}} listing in {{countyName}} County</h2>
function init_load_posts() {
// Grid Loop Query Args
add_action( 'pre_get_posts', 'be_grid_loop_query_args' );
}
add_action( 'init', 'init_load_posts' );
function be_grid_loop_query_args( $query ) {
<?php
/**
*
* Javascript for Load More
* Added conditional to not display on blog home page or single post pages
* Added 'maxpage' to use in load-more.js to determine if there are no more posts
*
*/
@AlphaBlossom
AlphaBlossom / clickfunnels-backstretch-footer.html
Last active January 24, 2017 05:25
Add backstretch.js carousel to ClickFunnels
/* CSS to raise lower section #row--31911-135 up into upper section */
/* Add overflow: visible so that #row--31911-135 will be able to show outside of container */
#section--38651-177-158-119-180-119 {
overflow: visible;
}
/* Add position: relative so z-index applies and this section covers the girl's body */
#row--31911-135 {
@AlphaBlossom
AlphaBlossom / youtube-replace-video-embed-thumbnail.css
Created August 13, 2019 20:20
Video Speed Optimization - Replace Youtube Video with Thumbnail, Load Video on Thumbnail Click
.youtube-player {
position: relative;
padding-bottom: 56.23%;
/* Use 75% for 4:3 videos */
height: 0;
overflow: hidden;
max-width: 100%;
background: #000;
}