How to customize search result page title?

Question

I would like to customize the page title of the search result page:

from:

<title>Search Results for “search string” – Page 2 – Sitename</title>

to:

<title>“search string” result page – Page 2 – Sitename</title>

In my search.php template, get_header() is probably the one being called to generate the <title> tag.

Is there a filter that I can apply to it to make this customization?

0
, , , , KDX 3 years 2020-07-09T07:10:28-05:00 0 Answers 66 views 0

Leave an answer

Browse
Browse