I use the wordpress theme Sensible WP. When I do a search this is what appears as the URL:


I need to modify the CSS for this page only, not all pages, but I can't find how to do it.


2 Answers 2


I was looking for this and found the solution:

Just add


to your class. ie:

.search-results .title {
color: red;

Hope this is useful.

if ( is_search() ) {
    echo ‘<style>.class{color:red;}</style>’;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.