Archived topic
How can I hide my post page title?
3 replies · Started by Stephen on April 20, 2021
Hello, I had an issue that my post page title could not be hided. Here is the reference link https://www.awesomescreenshot.com/video/3459858?key=eee659ea4c5da85340ac579b4ac413da
post page link: https://54.68.147.74/~lfs/fr/reinscription-radiations-2021-2022/
I can get rid of the post page title, but once the number of post getting increased, then it is hard for me to find it on the post list page.
Is there anyone can help?
Thanks,
Hi there,
You can use this filter:
https://docs.generatepress.com/article/option_generate_settings/
Example: Hiding the title on single post pages.
add_filter( 'option_generate_settings','lh_single_posts_settings' );
function lh_single_posts_settings( $options ) {
if ( is_single() ) {
$options['hide_title'] = 'true';
}
return $options;
}
Or disable it through a Layout element. (disable Content title)
https://docs.generatepress.com/article/layout-element-overview/#disable-element
Hi Elvin, as a beginner in website, especially in coding, I didn't understand what your instruction, do I need to create a class for this? The css code you gave me is the one that I copy and paste them into customized css block?
If you could simpify the process, it will be more more appreciated!
Best regards,
Chris
Hi there,
It's a PHP snippet.
Here's how to add PHP snippet codes - https://docs.generatepress.com/article/adding-php/
If it's too much, you can use the Layout Element.
https://docs.generatepress.com/article/layout-element-overview/#disable-element
Layout element doesn't require any coding.