Skip to content

Instantly share code, notes, and snippets.

View BeardedGinger's full-sized avatar

Josh Mallard BeardedGinger

View GitHub Profile
@BeardedGinger
BeardedGinger / Include Exodus Framework
Last active December 22, 2015 05:39
Include the Exodus Framework within your Genesis child theme
//* Include Exodus Framework
include_once( get_stylesheet_directory() . '/exodus-framework/init.php' );
@BeardedGinger
BeardedGinger / Exodus Mobile Navigation
Last active December 22, 2015 05:58
Add support for the mobile navigation available as part of the Exodus Framework
<?php
//* Add supoort for Mobile Navigation (default activation at 480px)
add_theme_support( 'mobile-nav' );
@BeardedGinger
BeardedGinger / Mobile Navigation Arguments
Last active December 22, 2015 05:58
Arguments for Exodus Framework Mobile Navigation
<?php
//* Add Mobile Navigation which activates on iPad Landscape
add_theme_support( 'mobile-nav', '1024' );
@BeardedGinger
BeardedGinger / Exodus Icon Fonts
Created September 3, 2013 19:54
Add Icon Fonts to your Genesis child theme using Exodus Framework
<?php
//* Add support for icon fonts (defaults to entypo)
add_theme_support( 'icon-font' );
@BeardedGinger
BeardedGinger / Font Awesome icon font
Created September 3, 2013 20:02
Add Font Awesome font icon using Exodus Framework
<?php
//* Add Font Awesome icon font
add_theme_support ( 'icon-font', 'fontawesome' );
@BeardedGinger
BeardedGinger / Scroll Header
Created September 3, 2013 20:28
Add a Scroll Header to Genesis child theme using Exodus Framework
<?php
//* Add support for Scroll Header
add_theme_support( 'scroll-header' );
@BeardedGinger
BeardedGinger / Upcoming events shortcode
Last active December 23, 2015 06:39
Modern Tribe's Events Calendar Upcoming Events Shortcode
add_shortcode( 'upcoming_events', 'upcoming_events_shortcode' );
/*
* Upcoming Events Shortcode
*
*/
function upcoming_events_shortcode() {
$args = array(
'post_type' => 'tribe_events',
'posts_per_page' => 3
);
@BeardedGinger
BeardedGinger / WooCommerce with Genesis
Created September 23, 2013 20:08
WooCommerce Function for the Genesis Framework
function woocommerce_setup_genesis() {
woocommerce_content();
}
@BeardedGinger
BeardedGinger / WooCommerce Template
Created September 23, 2013 20:12
WooCommerce Template page for Genesis Child Theme
<?php
/**
* WooCommerce Template
*
* Template used for all WooCommerce views for your site
*
*/
//* Remove standard post content output
remove_action( 'genesis_loop', 'genesis_do_loop');
@BeardedGinger
BeardedGinger / declare WooCommerce support
Created September 25, 2013 02:21
Declare WooCommerce support
//* Declare WooCommerce Support
add_theme_support( 'woocommerce' );