Welcome! To use this support forum, please Login or Join Today!

   

How to remove “Category: ” text from H1 heading on category archive page?

{name}
Rank

Total Posts: 27

Joined 2012-10-09

PM

 

Is it possible to remove the default “Category: ” leading text from the H1 heading on the category archive page via the child theme?

Thanks

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

If you’ll copy the category.php file from your parent theme directory to your child theme directory, then open and change:

printf( __( 'Category: %s', 'smpl' ), single_cat_title( '', false ) );

with:

printf( single_cat_title( '', false ) );
{name}
Rank

Total Posts: 27

Joined 2012-10-09

PM

 

great - thanks for the quick reply!