0

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

https://www.example.com/?s=my+search+text

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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