contacts

Get All 146 Premium WordPress Themes for Just $59.99
One-Time Payment: Unlimited Use Across Unlimited Domains, Plus Free Lifetime Updates! Learn more

How to Display Category Description

How to Display Category Description

By default, the category description is Not displayed. But if you need to display it, it will require a small code change. Here are all of the necessary steps:

1.Login to your Admin Panel

2. Navigate to Left Menu -> Appearance -> Theme Editor

3. Open ‘archive.php’ file for Edit

4. Below

<div id="main-content-wrapper">

insert the following code:

<?php 
		the_archive_description( '<div class="taxonomy-description">', '</div>' ); 
	?>

5. Save changes

6. (optional step) You can apply some style to the category description by navigating to Admin Panel -> Left Menu -> Appearance -> Customize -> Open ‘Additional CSS’ section, then insert the following code:

.taxonomy-description {
	text-align: center;
	font-size: 22px;
	margin-top: 10px;
}