Find out how to remove the title of all pages in Genesis Framework with a simple code snippet.
If you don’t want to display page titles, CPTs and web entries, you can use a Genesis hook.
Here’s how to do it:
Code snippet to remove the title in Genesis Framework
Add the following fragment at the end of functions.php file:
To see this and another 1097 code snippets of this website, login or subscribe here.
It’s as simple as that.
Using WordPress conditional tags you can get this code to affect only one type of title, like:
- Remove the title from one or more blog posts.
- Remove the titles from the CPTs (Custom Post Types).
- Leave some web pages untitled at your convenience.
If you wish, you can also delete the main title of the website.
Conclusion
As you can see, with a single line of code you can remove all the titles from your Genesis theme.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂