Reply To: Remove Category Page Description From Category Subpages

Home Forums Support Remove Category Page Description From Category Subpages Reply To: Remove Category Page Description From Category Subpages

#211263
Tom
Lead Developer
Lead Developer

Currently, GP just uses the default WordPress way of displaying the category description, which adds it to every page (to describe the posts below).

If you need to change it, you would need to copy the archive.php file and add it to your child theme.

Then you would need to find the category_description() function, and replace it with something like this:

$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
if ($page == 1) {
    echo category_description();
}

Trouble with that is you won’t get updates made to the archives.php template anymore, as it will only listen to your child theme file.