How to add an ID to an existing HTML element?

I’m using the Press Customizr theme. I need to add an ID (not class) to an existing HTML element from the theme (specifically it’s the Related posts section)

Is there a way I can do this with a filter/hook? The element has an existing class, so if I could target that element via its class and add a unique ID to it, without removing the class.

Read more here:: How to add an ID to an existing HTML element?

Leave a Reply

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