Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.8k views
in Q2A Core by

I'm designing a theme now(persian+right to left),almost finished.

now I want to now how can I to add placeholder to SearchBox input?

 

Q2A version: V 1.4.3

1 Answer

+3 votes
by
selected by
 
Best answer

In your qa-theme.php, overide the function search_field and add your placeholder.

function search_field($search)
        {
            $this->output('<INPUT '.$search['field_tags'].' VALUE="'.@$search['value'].'" CLASS="qa-search-field" placeholder="Search"/>');
        }

 

 

by
Thanks Mélanie, It worked perfectly.
by
My pleasure!
...