WordPress fix How to center align headlines without turning them into paragraphs?

Guest

How to center align headlines without turning them into paragraphs?, by PressingWord

I found out that wordpress uses <p class=”text-align”></p> to center align text. The problem is that if I want to align headlines, they are nested within a <p> element, so the headlines share the paragraph’s typography, which I do not want.