Available since: 3.0
searchwp_th_use_span
View Parameters »By default when implementing highlights, SearchWP will use a <mark>
to wrap highlights. If you’d prefer a <span>
be used, you can tell SearchWP to do that:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Tell SearchWP to use <span> for highlights instead of <mark>. | |
add_filter( 'searchwp_th_use_span', '__return_true' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$use_span |
Boolean |
Whether to use |