Last active
April 4, 2016 19:15
-
-
Save ohdesigner/44f06d3c3e8dca8c3f96543176799f92 to your computer and use it in GitHub Desktop.
Author Bio on Posts and Pages - WordPress Genesis
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
function add_author_bio() { | |
if ( !is_singular( array( 'post', 'page' ) )) return; | |
{ ?> | |
<div class="postauthor"> | |
<?php echo get_avatar( get_the_author_id() , 120 ); ?> | |
<h4>About Jeffrey Michael</h4> | |
<p><?php the_author_description(); ?></p> | |
</div> | |
<?php } | |
} | |
add_action('genesis_entry_footer', 'add_author_bio', 2); |
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
.about { | |
background-color: #e5e5e5; | |
border-bottom: 1px solid #eee; | |
padding: 30px; | |
padding: 3rem; | |
text-align: center; | |
} | |
.postauthor { | |
margin: 30px 0 50px; | |
margin: 3rem 0 5rem; | |
background: #f5f5f5 none repeat scroll 0 0; | |
border: 1px solid #e1e1e0; | |
overflow: hidden; | |
padding: 20px 20px 0 20px; | |
padding: 2rem 2rem 0 2rem; | |
} | |
.postauthor img { | |
border: 5px solid #e2dede; | |
float: left; | |
margin-right: 1.5em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment