XF 2.3 Search Box

hakyangler

Active member
Hello;

I made such an addition to the page_container template to expand the search field a little, but I couldn't quite get what I wanted. how can I do this?

Code:
<xf:if is="$xf.visitor.canSearch()">
<div class="nomobile">
    <div class="" data-menu="menu" aria-hidden="true">
        <form action="{{ link('search/search') }}" method="post"
            class="menu-content-ana"
data-xf-init="quick-search">
         <div class="menu-row-ana">
             <xf:if is="$searchConstraints">
                 <div class="inputGroup inputGroup--joined">
                    <xf:textbox name="keywords"
                        placeholder="{{ phrase('search...') }}"
aria-label="{{ phrase('search') }}"
data-menu-autofocus="true" />
                 </div>
             <xf:else />
                 <xf:textbox name="keywords"
                    placeholder="{{ phrase('search...') }}"
aria-label="{{ phrase('search') }}"
data-menu-autofocus="true" />
             </xf:if>
             </div>
             <xf:csrf />
        </form>
    </div>
</div>
</xf:if>
 

Attachments

  • https___xenforo.gen.tr_attachments_screenshot_1-png.28283_.webp
    https___xenforo.gen.tr_attachments_screenshot_1-png.28283_.webp
    31.2 KB · Views: 43
Back
Top Bottom