Support » Theme: Cosimo » How to change page-title

  • Hi,

    To be honest, cosimo is such a great theme. It’s simple but stunning.

    However, there is one thing about page-title that I couldn’t change.

    The red covered line is the one I want to remove.

    I did some research and found out I could change it from archive.php.

    <?php if ( have_posts() ) : ?>
    			<header class="page-header">
    					the_archive_title( '<h1 class="page-title">', '</h1>' );
    					the_archive_description( '<div class="taxonomy-description">', '</div>' );
    			</header><!-- .page-header -->

    However, I don’t know how to customize the_archive_title to delete the “categories”. Could anyone help me delete it out?

    I know it is just a small thing, but it really irritates me.

    Thank you.

Viewing 1 replies (of 1 total)
  • Hello zorrono1,

    It seems like the theme uses filter “get_the_archive_title” for displaying title based on the archive page, try below code in functions.php of your theme and it will remove “Category”

    function customize_category_title( $title ){
    if ( is_category() ) {
    		$title = sprintf( esc_html__( '%s', 'cosimo' ), single_cat_title( '', false ) );
    return $title;

    I would also suggest you to keep this code in child theme so that your changes will not be lost after theme upgrade.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change page-title’ is closed to new replies.