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 / remove-woocommerce-admin-theme-support-warning.php
Last active February 7, 2022 15:35
Integrate WooCommerce into Genesis Child Theme
// Remove WooCommerce Theme Support admin message
add_theme_support( 'woocommerce' );
@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 / woocommerce-move-price.php
Last active May 6, 2020 15:30
Move WooCommerce Pricing on Single Product Page
/**********************************
*
* Move WooCommerce Price on Single Product Page
*
* @author AlphaBlossom / Tony Eppright
* @link http://www.alphablossom.com
*
* Reference hook locations using woocommerce_single_product_summary hook
*
* @hooked woocommerce_template_single_title – 5
@AlphaBlossom
AlphaBlossom / genesis-inline-header-logo.php
Last active June 5, 2017 01:29
Genesis Inline Header Logo
/**********************************
*
* Replace Header Site Title with Inline Logo
* Fix Genesis bug - when using static front page and blog page (admin reading settings) Home page is <p> tag and Blog page is <h1> tag
* Replace "is_home" with "is_front_page" to correctly display Home page wit <h1> tag and Blog page with <p> tag
*
* @author AlphaBlossom / Tony Eppright
* @link http://www.alphablossom.com
*
************************************/
@AlphaBlossom
AlphaBlossom / genesis-page-links-styles.css
Last active August 29, 2015 14:05
Genesis Style Page-Links
@AlphaBlossom
AlphaBlossom / genesis-basic-header.html
Last active June 22, 2019 10:02
Genesis HTML Structure
<header class="site-header">
<div class="wrap">
<div class="title-area">
<!-- title-area content -->
</div>
<aside class="widget-area header-widget-area">
<!-- aside content -->
</aside>
</div>
</header>
@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