Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by
How to input default text like "search" in light grey color into search field?
The question title requires editing.

1 Answer

+3 votes
edited by

By adding HTML to the search field, e.g.

<INPUT placeholder="search" TYPE="text" NAME="q" VALUE="" CLASS="qa-search-field">

You should find the default code in qa-theme-base.php (I am not at my pc and cannot check which file it is).

Maybe there is also a "search" function that you can override by advanced theme.


I hacked qa-page.php for that, change line:

    'field_tags' => 'NAME="q"',


    'field_tags' => 'NAME="q" PLACEHOLDER="Search"',

done :)


Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.