Reply To: Removing the author and date from the Optimal Theme posts

Homepage Community Forums Optimal Theme Support Removing the author and date from the Optimal Theme posts Reply To: Removing the author and date from the Optimal Theme posts

#1543
Wes
Moderator

    The post info can actually be removed from the functions file (not css) by adding this code –

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

    To customize it, add the following code, and remove the shortcodes you don’t want to use –

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

    For more info – http://www.studiopress.com/tutorials/customize-post-info#remove