[Support request] Remove the title on category-archive pages

Home Forums Support Remove the title on category-archive pages

This topic contains 1 reply, has 2 voices, and was last updated by  David 3 days, 18 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #723105

    Raphael

    Hi,

    I want to remove the page-title on category-archive pages because I want to hook an individual archive-title/logo-template created with Elementor. „display:none“ is not an option because of SEO.
    Deactivating the title with Elements-layout doesn´t work.
    Here I found this solution: https://docs.generatepress.com/article/generate_show_title/ and customized it like this:

    add_action( 'after_setup_theme', 'remove_category_titles' );
    function remove_category_titles() {
    	if ( is_category( '' ) )
    		add_filter( 'generate_show_title', '__return_false' );
    }

    But it doesn´t work. How it is possible to remove the archive-title?

    Thanks!

    GeneratePress 2.1.4
    GP Premium 1.7.3
    #723319

    David Customer Support

    Hi there,

    try the is_archive() the is_category( 'slug' ) is used for posts of set category.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.