Force highlighting in h1 outside article tag?
-
Works extremely well (with a little CSS tweaking)!
But, in my twenty-seventeen-based child theme, when I click through to the page linked from the excerpt, although the highlighting works for the most part on that page, the query string doesn’t highlight the search term when it appears in the page title, which is in a
<h1 class="entry-title">
, which is NOT in an<article>
tag.So, that
<h1>
isn’t being given a ‘mark’ tag, so it can’t getting the style colour.Is there a way I can force it to get the ‘mark’ tag and so receive the colour? (Being the page title, it would be good if it got the highlighting, as that is then a clue to the reader that other instances of the search term will also be highlighted.)
- The topic ‘Force highlighting in h1 outside article tag?’ is closed to new replies.