How to Customize the Post Info Function in Genesis Theme?

Genesis Framework : In this short tutorial, you’ll learn about how to Customize the Post Info Function in Genesis. The Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you’re a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. In Genesis powered websites you’ve to modify the child theme which is running on.

These code snippets will help you to Customize the Post Info Function with the Genesis Framework.

Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.

Customize the Post Info Function in Genesis


Below is the code to Customize the Post Info Function:
//* Do NOT include the opening php tag
//* 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 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;
}

Final Words

I strongly recommended to take backup core files before customizing any Genesis Child Theme. Hope the above Genesis Tutorial was helpful and valued for you. Please don’t forget to share this with social friends and write a comment below if you need any assistance in customizing the look of your WordPress websites.


Editorial Note: When you buy through links on our site, we may earn an affiliate commission. Commissions do not affect our writers' opinions or evaluations.