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
//* Display a custom favicon | |
add_filter( 'genesis_pre_load_favicon', 'sp_favicon_filter' ); | |
function sp_favicon_filter( $favicon_url ) { | |
return 'http://www.mydomain.com/wp-content/images/favicon.ico'; | |
} |
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
//* Add Accessibility support | |
add_theme_support( 'genesis-accessibility', array( 'headings', 'drop-down-menu', 'search-form', 'skip-links' ) ); |
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
/* ## Screen reader text | |
--------------------------------------------- */ | |
.screen-reader-text, | |
.screen-reader-text span, | |
.screen-reader-shortcut { | |
position: absolute !important; | |
clip: rect(0, 0, 0, 0); | |
height: 1px; | |
width: 1px; |
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
//* Change the footer text | |
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter'); | |
function sp_footer_creds_filter( $creds ) { | |
$creds = '[footer_copyright] · <a href="http://pressavenue.com">WordPress for Business</a> · [footer_loginout]'; | |
return $creds; | |
} |
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
//* Display a custom favicon | |
add_filter( 'genesis_pre_load_favicon', 'sp_favicon_filter' ); | |
function sp_favicon_filter( $favicon_url ) { | |
return 'http://www.pressavenue.com/wp-content/images/favicon.ico'; | |
} |
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
//* Display a custom Gravatar | |
add_filter( 'avatar_defaults', 'sp_gravatar' ); | |
function sp_gravatar ($avatar) { | |
$custom_avatar = get_stylesheet_directory_uri() . '/images/gravatar.png'; | |
$avatar[$custom_avatar] = "Custom Gravatar"; | |
return $avatar; | |
} |
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
//* Make Font Awesome available | |
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); | |
function enqueue_font_awesome() { | |
wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.css' ); | |
} |
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
<i class="fa fa-camera-retro"></i> fa-camera-retro |
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
<i class="fa fa-camera-retro fa-lg"></i> fa-lg | |
<i class="fa fa-camera-retro fa-2x"></i> fa-2x | |
<i class="fa fa-camera-retro fa-3x"></i> fa-3x | |
<i class="fa fa-camera-retro fa-4x"></i> fa-4x | |
<i class="fa fa-camera-retro fa-5x"></i> fa-5x |
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
<div class="list-group"> | |
<a class="list-group-item" href="#"><i class="fa fa-home fa-fw"></i> Home</a> | |
<a class="list-group-item" href="#"><i class="fa fa-book fa-fw"></i> Library</a> | |
<a class="list-group-item" href="#"><i class="fa fa-pencil fa-fw"></i> Applications</a> | |
<a class="list-group-item" href="#"><i class="fa fa-cog fa-fw"></i> Settings</a> | |
</div> |