No longer kept up to date.
Please see Sridhar's fork.
<?php //Do not include opening php tag | |
add_filter( 'theme_page_templates', 'bourncreative_remove_page_templates' ); | |
/** | |
* Remove Genesis blog and archive templates from page templates dropdown. | |
* | |
* @author Brian Bourn | |
* @link http://www.bourncreative.com/remove-genesis-blog-archive-page-templates/ | |
* | |
* @param array $templates List of templates. |
<?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>'; |
//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 | |
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; | |
} |
No longer kept up to date.
Please see Sridhar's fork.
<?php | |
# Register custom post types on the 'init' hook. | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 1.0.0 | |
* @access public |
input[type="checkbox"], | |
input[type="radio"] { | |
width: 20px; | |
margin: 0 0 3px 3px; | |
vertical-align: middle; | |
} |
function add_genesis_before_post () { | |
echo '<div class="before-post">genesis_before_post</div>'; | |
}; | |
add_action('genesis_before_post', 'add_genesis_before_post'); | |
function add_genesis_before_post_title() { | |
echo '<div class="before-post-title">genesis_before_post_title</div>'; |
<?php | |
add_filter( 'genesis_attr_content', 'yoast_schema_empty', 20 ); | |
add_filter( 'genesis_attr_entry', 'yoast_schema_event', 20 ); | |
add_filter( 'genesis_attr_entry-title', 'yoast_itemprop_name', 20 ); | |
add_filter( 'genesis_attr_entry-content', 'yoast_itemprop_description', 20 ); | |
add_filter( 'genesis_post_title_output', 'yoast_title_link_schema', 20 ); | |
/** | |
* We'll use the post info output to add more meta data about the event. |