How Can We Help?

Search for answers or browse our knowledge base.

< All Topics

How to hide all categories except first in Block Extended Layout

This solution is tested on Block Extended layout.

Paste this code to Divi Theme Builder

.demo .post-categories a:not(:first-child){
display:none !important;

Then add this class name (demo) to Divi Blog Extras Module.

(change class name from demo to something else as per your preference).

This will hide all the categories except first in the Block Extended layout of Divi Blog Extras plugin. You could try something similar for other layouts.

Previous Remove link from categories in Grid Extended Layout
Next Display post tags along with categories on the front-end