in Wordpress Themes by simon (2.3k points)
Hi TT,
I want to remove the Category Archive title from category pages when used as menu items but the " Display All Page Title" (Theme Options-General- Display All Page Titles) will not turn them off (see attached image: screen1).

Is there a way round this please so the page starts with first post (see attached image :screen2 Category Archive & review removed with Firebug)?

[ img ]


[ img ]


Many thanks.

1 Answer

by simon (2.3k points)
Ha ha! I found how to do it. For anyone else wanting to do this, you need to do the following.

1, Go to Apperance-Editor-category.php.
2, Look for the following code.

<h1>
<?php printf( __( 'Category Archives: %s', CURRENT_THEME ), '<span>' . single_cat_title( '', false) . '</span>' );?>
</h1>
<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo apply_filters( 'category_archive_meta', '<div>' . $category_description . '</div>' );?>


3, Replace with the following (where /* [to disable]*/ is added):

<h1>
<?php /*printf( __( 'Category Archives: %s', CURRENT_THEME ), '<span>' . single_cat_title( '', false) . '</span>' )*/;?>
</h1>
<?php
/*$category_description = category_description();
if ( ! empty( $category_description ) )
echo apply_filters( 'category_archive_meta', '<div>' . $category_description . '</div>' )*/;?>
Interested in localizing/Translating TemplateToaster Software in your native language in exchange of a Pro License ? Contact Us
...