Remove Category Description text in Astra theme

WordPress Logo

I am using the Astra theme on one of my WordPress sites. It is a great theme that allows you too customize a lot but I did run into one issue. I really didn’t want the category descriptions to show up when I display a category archive page. If you are looking to remove the descriptions as well, then here is my easy fix. You can fix this up with a filter hook in your theme so it will not display the text.

Here is how to fix it up….

In the WordPress Dashboard, go to Appearances -> Theme Editor and open the funtions.php file of your Astra theme. Add the following code line to the bottom of the file.

add_filter( 'get_the_archive_description', '__return_null');

Leave a Comment

Your email address will not be published. Required fields are marked *