How to pass variable to get_search_form()?

Question

Is it possible to pass variable to get_search_form()?

I’m using it in two places: one in header and on the search page in the content. The latter must have additional class, e.g. search--full. I’ve tried to use is_search() but while it works well on other pages, on search page both forms have search--full class.

0
Runnick 2 years 2019-12-30T08:38:52-05:00 0 Answers 87 views 0

Leave an answer

Browse
Browse