Learn how to remove the title of one or more entries in Genesis Framework with a simple code snippet.
If you don’t want to display the title on your posts (or your client’s ones), use the following Genesis hook in combination with WordPress conditional tags.
Snippet to remove the title in Genesis posts
Add the following fragment at the end of functions.php file:
With this second snippet you limit the conditional, indicating that you only want delete posts with IDs 17 and 19. Of course, you can modify these values and adjust them to your needs.
Using WordPress conditional tags you can get this code to affect other post types, for example:
- Leave some web pages untitled at your convenience.
- Remove the titles from the CPTs (custom post types).
If you wish, you can also remove the main title of the website.
With a single line of code you can remove all titles from Genesis child theme blog posts.
But if you use WordPress conditionals, you can limit the effect to specific posts.
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. 😉