Archived topic
Disable Page TItle completely
10 replies · Started by Amos on January 7, 2017
Hello. i want to remove the page title completely but with the disable elements add on it is using "display:none".
Thank You.
Hi there,
If I understand correctly, you don't want to use disable elements because it's using CSS to hide it?
If so you can remove it using generate_show_title filter: https://docs.generatepress.com/article/generate_show_title/
Let us know.
Hi
You can completely remove all page titles you can do this
add_filter( 'generate_show_title', 'remove_my_titles' );
function remove_my_titles()
{
return 'false';
}
https://docs.generatepress.com/article/generate_show_title/
How to add above code: https://docs.generatepress.com/article/adding-php/
Edit: Leo beat me to it
You guys are awesome lol
BTW, the Disable Elements add-on should remove it completely, not just use display: none. Make sure you're using the latest version of GP and GP Premium.
Yes Tom i am using the latest version of the gp and gp Premium. after i check the Content Title (on disable elements) i have ".entry-header {display:none} " on the source code (ctrl + U).
Are you sure the title is actually inside that hidden element?
I am not sure what do you mean.
the Content Title is the name of the page right?(automatically become the h1 title)
That's correct, can you link me to the page where you've hidden the title?
Hi Tom,
I have just use your theme and also use Disable Element but it only hide the Title, don't remove completely.
It mean that in source code, you will find other H1. It's not good for SEO because each page don't need 2 H1.
Here is my site https://duhocvietduc.edu.vn
You can remove the title completely by using this filter: https://docs.generatepress.com/article/generate_show_title/