Discover in this tutorial how to hide the metadata at the top of a Custom Post Type (CPT) in the Genesis child theme Breakthrough Pro.
You know how to hide the CPTs’ metadata in Genesis child themes.
But some child themes make changes to hooks order so the “standard code” may not work.
That’s the case with Breakthrough Pro, which has a file called headings.php that changes the priority and location of the posts metadata.
However, once you know this feature you can remove it from the CPT of your choice by taking advantage of the Genesis hooks and WordPress conditional tags.
Shall we?
Snippet to suppress the metadata of a CPT in Breakthrough Pro
Add this fragment to the end of functions.php:
To see this and another 965 code snippets of this website, login or subscribe here.
By using the previous code you manage to remove the information from the top of the CPT Course. Of course, I invite you to change it to the one you want.
This does not affect the normal entries, which will still show the date, author and comments.
Conclusions
Now you know how to hide the metadata that is displayed at the top of a CPT in the Genesis child theme Breakthrough Pro.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉