How to Customize Post Meta Function in Genesis Theme?

Genesis Framework : In this short tutorial, you’ll learn about how to Customize Post Meta 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 Post Meta 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 Post Meta Function in Genesis


Below is the code to Customize the Post Meta Function:

//* Do NOT include the opening php tag
//* Customize the post meta function
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
function sp_post_meta_filter($post_meta) {
if ( !is_page() ) {
$post_meta = '[ post_categories before="Filed Under: "] [ post_tags before="Tagged: "]';
return $post_meta;
}}

Below is sample CSS to Customize the Post Meta:
/* Post Meta
------------------------------------------------------------ */
.post-meta {
border-top: 1px solid #ddd;
font-size: 14px;
margin: 0 0 20px;
padding: 5px 0 0;
}

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.