Site logo

Archived topic

Remove date and author from Category page.

3 replies · Started by Francesco on December 11, 2021

Viewing posts 1–4 of 4

Hi Francesco,

This filter will be needed: https://docs.generatepress.com/article/option_generate_blog_settings/

So in your case, try this PHP snippet:

add_filter( 'option_generate_blog_settings', 'lh_custom_category_page_settings' );
function lh_custom_category_page_settings( $options ) {
    if ( is_category('projekte') ) {
	$options['date'] = false;
        $options['author']= false;
    } 
    return $options;
}

Adding PHP: https://docs.generatepress.com/article/adding-php/

Let me know if this helps :)

Got it. It works.

Many many many thanks

No problem :)

This archived topic is closed to new replies.