I need a PHP function that will find all heading tags in and give them a unique id.
For example:
<h1>Some Heading</h1> BECOMES <h1 id="item1">Some Heading</h1>
<h3 class="big">Another Heading</h3> BECOMES <h3 class="big" id="item2">Another Two</h3>
I need it to work for all headings levels, regardless of any attributes they already have (class, styles, etc).
Do not use deprecated code. Create your own sample content.
Thanks
I can create my own code to replace the header tags with custom class. I will complete this work in a day.
Looking for your reply to start this work immediately. I will be available online from 2 am GMT to 5 pm GMT individual full time freelancer.