How to Use Different Blog Post Templates for Different Categories with Divi

by | Jan 4, 2022 | Etcetera | 0 comments

One of the most benefits of WordPress is the facility to make use of other put up templates for various classes. On the other hand, surroundings them up will also be tough. Thankfully, that is simple to do with the Divi Theme Builder. On this article, we’ll see the best way to use other weblog put up templates for various classes with Divi.

Preview

Sooner than we get began, right here’s a have a look at the other classes on my check site. Each and every will use a unique class.

All Posts

All Posts

I can use a number of classes, similar to this Well being class, that might not be assigned a weblog put up template to the. They’ll display the default class.

First Weblog Submit Class

First Blog Post Category

My first class might be assigned to the NGO weblog put up template. This weblog put up template will show for each and every put up within the NGO class.

2d Weblog Submit Class

Second Blog Post Category

My 2nd weblog put up class template is assigned to my House Staging class.

3rd Weblog Submit Class

Third Blog Post Category

My 3rd class presentations the Prime Faculty weblog template.

Fourth Weblog Submit Class

Fourth Blog Post Category

My fourth class presentations the Safety weblog put up template.

Why Use Other Weblog Templates for Other Classes?

The usage of other weblog templates for various classes offers your site some distinctive designs so your classes stand with the exception of one every other. The usage of other fonts, settings, and format choices can lend a hand the reader to higher perceive your content material. Even simply the use of a unique colour can set the temper for the class. You’ll use other layouts for tutorials, occasions, and extra.

The way to Get Weblog Submit Templates

How to Get Blog Post Templates

There are many loose weblog put up layouts within the Chic Subject matters weblog that have been designed for the loose Divi format packs. To search out them, seek the https://www.elegantthemes.com/weblog/ for “https://www.elegantthemes.com/weblog/?s=loose+weblog+put up+template&post.x=0&post.y=0” and obtain them on your pc. Unzip them so you’ll be able to add them as JSON recordsdata. I’ll use a number of templates from the primary web page of seek effects to arrange other classes.

See also  SQL Injections: What WordPress Users Need to Know

Importing Weblog Submit Templates to the Divi Theme Builder

Uploading Blog Post Templates to the Divi Theme Builder

The entire recordsdata might be uploaded the similar approach after which we’ll assign them as they’re uploaded. To add a weblog put up template:

  • Cross to Divi > Theme Builder within the WordPress dashboard.
  • Make a selection Portability.
  • Click on Import throughout the modal that looks.
  • Navigate to the JSON document to your pc and choose it.
  • Click on Import Divi Theme Builder Templates.

Two settings are decided on through default:

  • Override the Default Website online Template
  • Permit Import to Override Current Assignments

It’s k to depart those decided on. On the other hand, the primary one might be set to All Posts, and any put up templates you add after it’s going to override it. You’ll simply reassign any of the templates to All Posts. We’ll see how to try this as we cross.

Uploading Blog Post Templates to the Divi Theme Builder

Subsequent, proceed the importing procedure till you’ve uploaded your whole templates. Alternately, you’ll be able to add and assign them one after the other. The identify for the primary one we uploaded is black, indicating that it’s been assigned. The others are in pink, indicating that they’re now not assigned. The closing one I uploaded has been mechanically assigned because the default weblog put up format.

The way to Use Other Weblog Submit Templates for Other Classes

As soon as we’ve got the templates uploaded, we will assign them to other classes. I can go away the closing one assigned to All Posts so it’s going to be used because the default template after which other templates for various classes.

I’ve created a number of classes and added dummy posts to every of them. Those are simply random the use of photographs from the quite a lot of Divi format packs.

First Weblog Submit Particular Class

First Blog Post Category

First, hover over the template to your first class and choose the equipment icon when apparently.

First Blog Post Specific Category

This opens the Template Settings. Within the Use On tab (the default tab), underneath a bit referred to as Posts, you’ll see a number of choices come with Posts in Particular Classes. Hover over this feature and also you’ll see an inventory of your classes. Make a selection the class (or classes) you wish to have to assign this template to and click on Save. You’ll see the class assigned when you choose it.

See also  How to Use the Featured Product WooCommerce Block

First Blog Post Specific Category

After all, save the settings within the higher left of the display. The template will then display the identify of the template you decided on in black. That is the template that can now be used for this class. All others at this level will show the default class.

2d Weblog Submit Particular Class

Second Blog Post Specific Category

Secondly, choose the equipment icon for the second one template.

Second Blog Post Specific Category

Hover over Posts in Particular Classes and choose the 2nd class and click on Save.

3rd Weblog Submit Particular Class

Third Blog Post Specific Category

Thirdly, choose the equipment icon for the 3rd template.

Third Blog Post Specific Category

Hover over Posts in Particular Classes and choose the 3rd class and click on Save.

Fourth Weblog Submit Particular Class

Fourth Blog Post Specific Category

Fourthly, choose the equipment icon for the fourth template.

Fourth Blog Post Specific Category

Subsequent, hover over Posts in Particular Classes and choose the fourth class and click on Save.

Surroundings the Default Weblog Submit Template

Setting the Default Blog Post Template

After all, we’ll arrange a brand new default weblog put up template. I’ve every other template that I’d love to set because the default. First, we need to unassign the template that’s lately set to All Posts. Hover over the template that’s lately set to All Posts and choose the equipment icon.

Setting the Default Blog Post Template

Uncheck All Posts and click on Save.

Setting the Default Blog Post Template

Hover over the template you wish to have to assign to All Posts and click on the equipment icon.

Setting the Default Blog Post Template

Take a look at All Posts and click on Save. I now have a brand new weblog put up template assigned because the default. I now have 5 weblog put up templates. 4 are assigned to precise classes. The ones classes will show the ones explicit templates. All different classes will show the template I’ve set as All Posts. Any of those templates will also be modified through reselecting what they’re assigned to.

See also  How to Add a Different CTA Per Post Category Using Divi’s Theme Builder

Exclude a Class

Exclude a Category

We will be able to additionally exclude a class from showing the default template. Make a selection the Exclude From tab and hover over Posts in Particular Classes. Make a selection the class and make a choice Save. For my instance, I’ve decided on Uncategorized not to use the default weblog put up template.

Exclude a Category

Now, any put up that has Uncategorized for the class is not going to show a template from the Divi Theme Builder.

Effects

After all, right here’s how our weblog put up templates search for every of the types.

All Posts

All Posts

I haven’t assigned a weblog put up template to the Well being class, so it presentations my default class.

First Weblog Submit Class

First Post Category

I assigned the NGO weblog put up template to my NGO class. This weblog put up template now presentations for each and every put up within the NGO class.

2d Weblog Submit Class

Second Post Category

My 2nd weblog put up class template presentations my House Staging class.

3rd Weblog Submit Class

Third Post Category

My 3rd class presentations the Prime Faculty weblog template.

Fourth Weblog Submit Class

Fourth Post Category

My fourth class presentations the Safety weblog put up template.

Finishing Ideas

That’s our have a look at the best way to use other weblog put up templates for various classes with Divi. It’s simple to assign a weblog put up template to any class the use of the Divi Theme Builder. You’ll assign any selection of put up templates. You’ll even exclude classes from the templates. Any class now not assigned or excluded will mechanically show the default weblog put up format.

We wish to pay attention from you. Do you utilize other weblog put up templates for various classes with Divi? Tell us within the feedback.

The put up How to Use Different Blog Post Templates for Different Categories with Divi seemed first on Elegant Themes Blog.

0 Comments

Submit a Comment