Back to Top

How to remove Unwanted Avatar Classes in WordPress

Remove Unwanted Avatar Classes in WordPress

Nowadays, Websites are moving towards the responsive design and for responsiveness, we are using bootstrap, media queries etc.A responsive site is something that most sites will need.

In this article, I am going to share a pretty simple and useful trick which is about to remove unwanted avatar class for comments.WordPress allows you to do this in very simple and effective ways using hook concept.If you’re a WordPress developer, you have an idea about the hook and if you don’t have an idea, you can use following code provided.

Check the following code to be clear

You just need to place above code in functions.php file of your active theme.I have used above trick for one of my sites and this code was worked so sharing this code here. This code is just remove the existing class.You can add new class also if you require.

Read about: User Roles in WordPress

Hope this trick will be useful to you when you want to make this type of customization.If you find any issue in this code or not work for you, write on the comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

How to define PHP Magic constants

Posted on 6 years ago

Zinal

How to use WordPress Heartbeat API?

Posted on 2 years ago

Bhumi

Run-Time Validation using jQuery

Posted on 4 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 4 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi