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
/** 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
#footer | |
{ | |
text-align: center; | |
} |
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
/** Change Text Shown When No Posts Are Found */ | |
add_filter('genesis_noposts_text', 'eo_noposts_text'); | |
function eo_noposts_text($text) | |
{ | |
$text = '<span class="noposts-text">' . __('Your request did not return any results, please check back later.', 'eo') . '</span>'; | |
return $text; | |
} |
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
// Add custom post class to posts in the "Featured" category | |
add_filter('post_class', 'eo_custom_post_class'); | |
function eo_custom_post_class($classes) | |
{ | |
$new_class = 'featured-post'; | |
if (in_category('Featured')) | |
$classes[] = esc_attr(sanitize_html_class($new_class)); | |
return $classes; | |
} |
OlderNewer