XF 2.2 How can we change the search prompt text?

Solution
Either change the phrase “search” or edit the PAGE_CONTAINER template.

HTML:
                                            <xf:textbox name="keywords"
                                                placeholder="{{ phrase('search...') }}"
                                                aria-label="{{ phrase('search') }}"
                                                data-menu-autofocus="true" />
Either change the phrase “search” or edit the PAGE_CONTAINER template.

HTML:
                                            <xf:textbox name="keywords"
                                                placeholder="{{ phrase('search...') }}"
                                                aria-label="{{ phrase('search') }}"
                                                data-menu-autofocus="true" />
 
  • Like
Reactions: sbj
Solution
Thanks Ozzy.

Changing the phrase would be bad, as it would change everywhere. Especially since it is a prompt, I want to add a sentence there. So imagine the default search being replaced by a hole phrase :D.

Guess have to edit the template.
 
Back
Top Bottom