Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Filters helpful_headline_html

helpful_headline_html

Help: If you do not know how to execute or save your own PHP code, you can find help here: How to execute PHP code on your WordPress website

Sometimes it is necessary to manipulate the HTML tag of the Helpful Heading. To make this easy, there is a filter that holds the Helpful Heading. Here you can swap the h3 with a h2.

<?php
// Replace the h3 heading with an h2 heading.
add_filter( 'helpful_headline_html', function( $html ) {
   return str_replace( 'h3', 'h2', $html );
});

Was this post helpful?