In WordPress, the Post Meta refers to the meta information such as Category and Tag in a post. If you’re using Genesis Framework, its default position appears as below.
In Genesis, Filed Under is the same as Category in WordPress and it is typically located below the article whereas the post info such as Post Date and Author’s Name is located below the Entry Title (Post Title) by default.
Many developers, however, tweak the default location of post meta and post info to achieve their desired results as per the design goals.
If you’re working on a project that requires you to relocate either Post Meta or Post Info, you can use the code snippet below.
Before we start, I’d like to show you the outcome of this tut. Here’s what it looks like after applying the code snippets in this tutorial.
Show Me the Code
You can achieve the desired results in three steps.
Step #1. Relocate Post Meta and Post Info from their default position to a new position by adding appropriate Genesis Hooks.
Step #2: Tweaking functionality within Post Meta and Post Info by applying appropriate Genesis filters.
Step #3. Adding CSS code snippets to make cosmetic changes.
Things to Remember:
The tutorial is applicable to Genesis child themes only. If you’re using any other themes, these code snippets may not work at all.
If you’re not a developer, avoid applying these code snippets directly in your theme’s editor panel – use any FTP Client and Text Editor.
So, let’s do it.
Step #1. Add the following code snippets to functions.php file of your active theme folder.
Step #2. Add the following code snippets to functions.php file of your active theme folder.
Step #3. Add the following code snippets to style.css file of your active theme folder.
I hope you find this tutorial useful. If you have any questions, let me know in the comments below.
Christina says
Hi.
Please check the step #2 code.
It’s adding links from this website (leaguewp.com)
Christina
topleague says
Thanks Cristina! I will fix it.