block editor – How to Disable auto id attributes in Heading tag?


I don’t know why but WP is automatically adding id attributes to h2 tags. I am not supplying any id or class attribute and I don’t need it. Also, it’s adding type="1" to <ol> tag that’s not needed in my case.

You can see it on this page:

Please help, how to stop it?

I need this:


<h2>Example Sentences</h2>


This is what WP doing with it.

<h2 id="meaning">Meaning</h2>

<h2 id="example-sentences">Example Sentences</h2>

<h2 id="origin">Origin</h2>

Freya West 1 year 2022-02-18T02:33:47-05:00 0 Answers 0 views 0

Leave an answer