/ Published in: PHP

Open your search.php file and find the the_title() function. Replace it with the following:
1.echo $title;
Save the search.php file and open style.css. Append the following line to it:
strong.search-excerpt { background: yellow; }
1.echo $title;
Save the search.php file and open style.css. Append the following line to it:
strong.search-excerpt { background: yellow; }
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $title = get_the_title(); '<strong class="search-excerpt">\0</strong>', $title); ?>
Comments
