Lego2012
12/14/2016 - 2:37 PM

Post Info

Post Info

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

<!-- If you are a beginner user, you might find the Simple Edits plugin helpful as it presents an easier method of customizing the post info. -->

<!-- The snippets below may be used to customize the Post Info in XHTML themes. If you are using a HTML5 (Pro) theme, use the Entry Header customization snippets. -->

<!-- Below is the code to customize the post info on your site: -->

//* Customize the post info function
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
if ( !is_page() ) {
    $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;
}}

<!-- Below is the code to remove the post info on your site: -->

//* Remove the post info function
remove_action( 'genesis_before_post_content', 'genesis_post_info' );

<!-- Below is sample CSS to customize the post info on your site: -->

/* Post Info
------------------------------------------------------------ */
 
.post-info {
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    margin: 0 0 20px;
    padding: 0 0 5px;
}