Do you want to customize post info in your genesis theme. It’s really easy, and won’t take more than a minutes for complete implementation. You already know about the custom function.php file provided in every genesis and its child themes.
You have to just edit it. And then finally you have to add some custom short-codes and functions and you work is done. So lets move on.
Please Take These Precautions :
- It’s really important to create a backup file.
- Any mistake in function file and your site or blog will be down temporarily
- Make sure you have your FTP software connected or web file manager open
Lets Customize Post Info In Genesis Theme
Your very first step is to move to your WordPress dashboard. And please take the precautions listed above
- Click on Appearance
- Click on editor
- Now click on Theme functions ( function.php )
Now code the code provided below and paste in to your function file. Simply add it to the bottom. And your are done.
Reposition Post Info
Sometime you need custom placement for your post info. You might like to place it above the titles or below it. Or to just any other place. Below is the simple code which can be modified easily and you will get your desired placement. For Hooks Please Visit : StudioPress Resources Hooks
Over here we are replacing the info from genesis_before_post_content to genesis_before_post_title. It’s really easy to understand. Just replace these codes with the other placement hooks and it will give you, your desired look.
Remove Post Info In Genesis
Sometimes these post information mess up the look of your themes ( usually when its custom designed ). So you would like to remove it forever ( can be easily replaced again ). Just copy the code provided below to function.php file.
<code>/** Remove the post info function */ remove_action( 'genesis_before_post_content', 'genesis_post_info' );</code>
Now if you need the post info, then just remove the above custom code.