Change the HTML around the post title with a filter…
-
I want to modify the html output around the post title so I could change heading tag and/or add classes.
If the default is like this:
<h2 class="entry-title">The Title Goes Here!</h2>
I’d like to change it to this:
<h3 class="entry-title level-2">The Title Goes Here!<h3>
I could do this with a custom template tag, but I would prefer to to with a filter and relieve the users of the need of editing their theme template files. Is that possible?
‘the_title’ filter just modifies the text inside the HTML tags.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change the HTML around the post title with a filter…’ is closed to new replies.