No longer kept up to date.
Please see Sridhar's fork.
<?php | |
add_filter( 'oembed_providers', 'oembed_fix_twitter', 10, 1 ); | |
function oembed_fix_twitter( $providers ) { | |
$providers[ '#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i' ] = array( 'https://api.twitter.com/1/statuses/oembed.{format}', true ); | |
return $providers; | |
} |
//Enqueue the Dashicons script | |
add_action( 'wp_enqueue_scripts', 'amethyst_enqueue_dashicons' ); | |
function amethyst_enqueue_dashicons() { | |
wp_enqueue_style( 'amethyst-dashicons-style', get_stylesheet_directory_uri(), array('dashicons'), '1.0' ); | |
} | |
// Optional Custom entry meta in entry header - remove "by"" | |
add_filter( 'genesis_post_info', 'amethyst_filter_post_info' ); | |
function amethyst_filter_post_info($post_info) { | |
$post_info = '[post_date] [post_author_posts_link] [post_comments] [post_edit]'; |
<?php | |
/** | |
* Template Name: Galleries | |
* | |
* @package BE_Gallery | |
* @since 1.0.0 | |
* @link https://github.com/billerickson/BE-Gallery | |
* @author Bill Erickson <bill@billerickson.net> | |
* @copyright Copyright (c) 2011, Bill Erickson | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
<?php | |
/** | |
* Blog Intro | |
* | |
*/ | |
function be_blog_intro() { | |
$content = get_post( get_option( 'page_for_posts' ) )->post_content; | |
if( $content ) | |
echo '<div class="blog-intro">' . wpautop( $content ) . '</div>'; |
// Register and Hook Top Navigation Menu | |
add_action('genesis_before_header', 'sample_before_header_menu', 10); | |
function sample_before_header_menu() { | |
register_nav_menu( 'top', 'Top Navigation Menu' ); | |
genesis_nav_menu( array( | |
'theme_location' => 'top', | |
'menu_class' => 'menu genesis-nav-menu menu-top', | |
) ); |
/** | |
* Remove Sensei comments output and replace with comments done the Genesis way. | |
* | |
* @notes Extends the WooThemes_Sensei_Frontend class. | |
* | |
*/ | |
if (class_exists('WooThemes_Sensei_Frontend')) { | |
remove_action( 'sensei_comments', array( $woothemes_sensei->frontend, 'sensei_output_comments' ), 10 ); | |
add_action( 'sensei_comments', array( 'WooThemes_Sensei_Frontend_Comments', 'pasada_sensei_output_comments' ), 10 ); |
<?php | |
/* | |
Template Name: Sales Page | |
*/ | |
//* Add custom body class to the head | |
add_filter( 'body_class', 'dm_add_body_class' ); | |
function dm_add_body_class( $classes ) { | |
$classes[] = 'dm-sales'; |
No longer kept up to date.
Please see Sridhar's fork.