Hey mate,
To add a description to your category page, head over to the Posts ? Categories page. If you are creating a new category, then you can simply enter the category name and description here and then click on the ‘Add new category’ button.
If you want to add a description to an existing category, then you need to click on the ‘Edit’ link below that category.
This will take you to the category edit screen where you can add a description for your category.
Don’t forget to click on the ‘Update’ button to save your changes.
Repeat the process to add descriptions to all your categories. You can use the same method to add descriptions for tags as well.
Most WordPress themes will automatically display the category description on the category archive pages.
However, if your theme does not display category descriptions on archive pages, then you will need to edit your theme files.
Make a backup for your website first, then connect to your WordPress site using an FTP client or use file management plygin and then go to /wp-content/themes/your-current-theme/ folder.
Now you will need to locate and edit category.php file. If your theme doesn’t have category.php file, then you will need to edit archive.php file.
Copy and paste this code where you would like the category description to be displayed.
<?php
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>
You can now save your changes and upload the file back to your website.
After that, you can visit the category archive page on your website to see the description in action.
Have a great day!
Credit: https://www.wpbeginner.com/wp-tutorials/how-to-display-category-descriptions-in-wordpress/
-
This reply was modified 3 years, 4 months ago by
anasmouaziz.
-
This reply was modified 3 years, 4 months ago by
anasmouaziz. Reason: Giving credit
-
This reply was modified 3 years, 4 months ago by
anasmouaziz. Reason: Remmeber backup / adding alternative solution to FTP