How to centrally align h2, h3 heading in particular post in WordPress

how to centrally align h2, h3 heading in particular post of WordPress.
I can’t find a way to do this.

It’s easy.

  1. Write a text and select it
  2. Choose heading and then alignment

image

it’s in the classic editor.
thanks again sir.

Edit as HTML and try this way

<h2 align='center'>Sample heading text</h2>
1 Like

it’s also work.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.