This file contains 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
/** Move Genesis Comments */ | |
add_action( 'genesis_before_comments' , 'eo_move_comments' ); | |
function eo_move_comments () | |
{ | |
if ( is_single() && have_comments() ) | |
{ | |
remove_action( 'genesis_comment_form', 'genesis_do_comment_form' ); | |
add_action( 'genesis_comments', 'genesis_do_comment_form', 5 ); | |
} | |
} |
This file contains 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 WordPress Login Logo */ | |
add_action('login_head', 'eo_login_logo'); | |
function eo_login_logo() | |
{ | |
echo | |
'<style type="text/css"> | |
login h1 a | |
{ | |
background-image: url(' . get_bloginfo('template_directory') . '/images/login-logo.png) !important; | |
} |
This file contains 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 Powered by WordPress */ | |
add_filter('login_headertitle', 'eo_login_logo_url_desc'); | |
function eo_login_logo_url_desc() | |
{ | |
return bloginfo('name'); | |
} |
This file contains 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 WordPress Login Logo URL */ | |
add_filter('login_headerurl', 'eo_login_logo_url'); | |
function eo_login_logo_url() | |
{ | |
return bloginfo('url'); | |
} |
This file contains 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
/** Remove Post Info */ | |
remove_action('genesis_before_post_content', 'genesis_post_info'); |
This file contains 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
/** Customize Post Info */ | |
add_filter('genesis_post_info', 'eo_post_info_filter'); | |
function eo_post_info_filter($post_info) | |
{ | |
if ( ! is_page() ) | |
{ | |
$post_info = 'Written by [post_author_posts_link] on [post_date] at [post_time]'; | |
return $post_info; | |
} | |
} |
This file contains 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
/** Customize the Return to Top of Page */ | |
add_filter('genesis_footer_backtotop_text', 'eo_custom_footer_backtotop'); | |
function eo_custom_footer_backtotop($backtotop) | |
{ | |
$backtotop = '<a href="#wrap" rel="nofollow">Click to Go Up</a>'; | |
return $backtotop; | |
} |
This file contains 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
/** Customize the credits */ | |
add_filter('genesis_footer_creds_text', 'eo_custom_footer_creds'); | |
function eo_custom_footer_creds() | |
{ | |
echo '<div class="creds"><p>'; | |
echo 'Copyright © '; | |
echo date('Y'); | |
echo ' · <a href="http://www.myawesomewebsite.com">My Awesome Website</a> · Powered by <a href="http://www.eugenoprea.com/" title="Eugen Oprea">Eugen Oprea</a>'; | |
echo '</p></div>'; | |
} |
This file contains 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
/** Customize the entire footer */ | |
remove_action('genesis_footer', 'genesis_do_footer'); | |
add_action('genesis_footer', 'eo_custom_footer'); | |
function eo_custom_footer() | |
{ | |
echo '<p>'; | |
echo 'Copyright © '; | |
echo '2011 - '; | |
echo date('Y'); | |
echo ' · <a href="http://www.eugenoprea.com/" title="Eugen Oprea">Eugen Oprea</a> · All rights reserved'; |
This file contains 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
#footer | |
{ | |
text-align: center; | |
} |
OlderNewer