Site logo

Archived topic

How can I hide my post page title?

3 replies · Started by Stephen on April 20, 2021

Viewing posts 1–4 of 4

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

This archived topic is closed to new replies.