Skip to content

Instantly share code, notes, and snippets.

View AlphaBlossom's full-sized avatar

Tony Eppright AlphaBlossom

View GitHub Profile
@AlphaBlossom
AlphaBlossom / genesis-breadcrumb-args.php
Last active August 29, 2015 14:03
Replace Genesis Breadcrumbs "Home" text with Icon
add_filter( 'genesis_breadcrumb_args', 'sp_breadcrumb_args' );
function sp_breadcrumb_args( $args ) {
$args['home'] = 'Home';
return $args;
}
@AlphaBlossom
AlphaBlossom / genesis-breadcrumbs-yoast-section.php
Last active August 29, 2015 14:03
Genesis Fix for Yoast SEO Plugin Disabling Genesis Breadcrumbs
elseif ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<div>', '</div>' );
}
@AlphaBlossom
AlphaBlossom / alphablossom-equal-height-fixed-width.css
Created June 27, 2014 01:00
Equal, Full Height Colums using CSS Only
.content-sidebar-wrap {
position: relative;
float: left;
width: 100%;
margin-bottom: 50px;
z-index: 99; /* needed for Safari 7 */
}
.content:after,
.sidebar-primary:after {
@AlphaBlossom
AlphaBlossom / genesis-add-id-nav.php
Last active August 29, 2015 14:03
Add Mmenu Off Canvas Mobile Menu to Genesis Child Theme
/**********************************
*
* Add id="menu" attribute to Primary Navigation
*
* @author AlphaBlossom / Tony Eppright
* @link http://www.alphablossom.com
*
**********************************/
add_filter( 'genesis_attr_nav-primary', 'youruniqueprefix_primary_nav_id' );
@AlphaBlossom
AlphaBlossom / genesis-page-links-styles.css
Last active August 29, 2015 14:05
Genesis Style Page-Links
@AlphaBlossom
AlphaBlossom / modify-comment-labels.php
Last active August 29, 2015 14:06
Modify WordPress/Genesis Comment Form Labels
<?php
//* Do NOT include the opening php tag
/**********************************
*
* Filter Comments Form Labels
* Modify the Labels Text
* Add Font-Awesome Icons to Labels
*
* Only for Genesis HTML5 themes
@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 / 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>