Extra is one of the finest themes for creating a portfolio and blogging sites. This theme is totally different from all other themes as it contains many special features. One of the best features of the extra theme is the Trending Bar. Trending Bar shows notification of all the posts. Sometimes there is a need when we have to show notification of all the posts for a particular category in the trending bar. This can be achieved by using CSS.

Follow the instruction for displaying post notification for individual category in trending bar:

  • Go to Appearance>>Editor>>functions.php

Trending Bar

In the functions.php file, we can place the code given below.

In the above code don’t forget to replace the category_name and posts_per_page accordingly as shown in the below image.

Trending Bar

If this post satisfies you then please let us know and feel free to comment for any other suggestions and questions.

You May Also Like

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

You have Successfully Subscribed!

Share This