• Resolved jamespostsil

    (@jamespostsil)


    Is there any way to remove the h3 heading tag from the Helpful output? It is appearing in my table of contents, and I would rather not have to customize each “Helpful” instance to exclude it from the table of contents.

    I would like to make the helpful title a non-heading (e.g., span or div) and style it myself.

    Thank you,

    James Post

Viewing 1 replies (of 1 total)
  • Plugin Author Pixelbart

    (@pixelbart)

    @jamespostsil

    Thank you for your feedback!

    There are numerous filters. With this one, you can influence the HTML of the headline. Here in the example h3 is replaced with div. This is certainly more accurate, but should already be useful to you.

    functions.php:

    add_filter('helpful_headline_html', function ($html) {
        return str_replace('h3', 'div', $html);
    }, PHP_INT_MAX );

    Stay healthy and greetings
    Kevin

    • This reply was modified 3 years, 3 months ago by Pixelbart.
Viewing 1 replies (of 1 total)
  • The topic ‘Remove h3 heading tag’ is closed to new replies.