Recent Questions - WordPress Development Stack Exchange · Jan 4, 2017
How to automatically add custom classes to headings in content area
0Sign in to vote or save
This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.
Is there any way I can automatically add a custom class to heading tags (like h1, h2, h3, etc..,) in the content area. I know that I can manually add a class to a sub-heading from the post editor, but I want the class to be applied to all the headings in all the posts. for instance, a normal heading will look something like this <h2>sub-heading</h2> . I want this to be changed to <h2…

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.