There are a few things that we will explain to you on this section that related to creating a custom category template:
- Create New Template
- Override Category Template
1. Create New Template
Firstly you will need to create a new template. You just need to go WordPress Dashboard > Archive Template > New Archive Template. We already provide specify elements for custom category template. You can find the element under Archive Template element category.
You can use this WPBakery content as an example:
[vc_row][vc_column][jblog_archive_hero compatible_column_notice="" hero_margin="5" link="" first_page=""][vc_row_inner][vc_column_inner width="2/3"][jblog_archive_title compatible_column_notice="" font-size="3em"][jblog_archive_desc compatible_column_notice=""][jblog_archive_block compatible_column_notice="" column="8" number_post="2"][jblog_archive_pagination compatible_column_notice=""][/vc_column_inner][vc_column_inner width="1/3"][jblog_archive_block compatible_column_notice="" column="4" number_post="3"][/vc_column_inner][/vc_row_inner][/vc_column][/vc_row]
2. Override Category Template
After making a custom archive template for the category then you need to set up the Override Category Setting option. Firstly you need to go edit certain post categories. On the category dashboard, you will find Override Category Setting meta box. Please check this image below for detail:
Created in Denpasar, Bali by Jegtheme. 2024