This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //* Please don't copy this opening php tag | |
//* Enqueue Dashicons Scripts | |
add_action( 'wp_enqueue_scripts', 'afn_add_dashicons' ); | |
function afn_add_dashicons() { | |
wp_enqueue_style( 'dashicons' ); | |
} | |
//* Customize the entry meta in the entry header (requires HTML5 theme support) | |
add_filter( 'genesis_post_info', 'afn_custom_header_meta' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Enqueue Octicons icon font in WordPress | |
add_action( 'wp_enqueue_scripts', 'afn_enqueue_octicons' ); | |
function afn_enqueue_octicons() { | |
wp_enqueue_style( 'afn-octicons', get_bloginfo( 'stylesheet_directory' ) . '/octicons/octicons.css', array(), '2.0.2' ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add oEmbed support for CodePen | |
wp_oembed_add_provider('http://codepen.io/*/pen/*', 'http://codepen.io/api/oembed'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Rebuild Genesis Footer Credit with Nofollow Attribute | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
add_action( 'genesis_footer', 'afn_custom_footer' ); | |
function afn_custom_footer() { | |
?> | |
<p>© Copyright 2012 <a href="http://mydomain.com/" rel="nofollow">My Domain</a> · All Rights Reserved · Powered by <a href="http://wordpress.org/" rel="nofollow">WordPress</a> · <a href="http://mydomain.com/wp-admin" rel="nofollow">Admin</a></p> | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Create portfolio custom post type | |
add_action( 'init', 'register_cpt_portfolio' ); | |
function register_cpt_portfolio() { | |
register_post_type( 'portfolio', | |
array( | |
'labels' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.breadcrumb .dashicons.dashicons-admin-home { | |
color: #de696b; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Remove 'You are here' texts in Genesis Framework breadcrumb | |
add_filter( 'genesis_breadcrumb_args', 'afn_breadcrumb_args' ); | |
function afn_breadcrumb_args( $args ) { | |
$args['labels']['prefix'] = ''; | |
return $args; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Enqueue Dashicons icon font | |
add_action( 'wp_enqueue_scripts', 'afn_dashicons_icon_font' ); | |
function afn_dashicons_icon_font() { | |
wp_enqueue_style( 'dashicons' ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Replace 'Home' text with a home icon in Genesis Framework breadcrumb | |
add_filter ( 'genesis_home_crumb', 'afn_breadcrumb_home_icon' ); | |
function afn_breadcrumb_home_icon( $crumb ) { | |
$crumb = '<a href="' . home_url() . '" title="' . get_bloginfo('name') . '"><i class="dashicons dashicons-admin-home"></i></a>'; | |
return $crumb; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function jetpackme_move_related_posts_to_top( $options ) { | |
$options['show_above_content'] = true; | |
return $options; | |
} | |
add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_move_related_posts_to_top' ); |