Notifications
Clear all

[Closed] WpForo Search Widget

5 Posts
2 Users
0 Reactions
447 Views
t.niron
Posts: 86
Topic starter
(@t-niron)
Estimable Member
Joined: 4 years ago

Hello,

We design our website using elementor. There is a search field for it in our blog posts, products and some other areas. We want the same on WpForo (search in topics) but couldn't find how to add it. Please see screenshots.

Sapmler 1

Sampler 2

I ask for your support in this matter. Thank you

Topic Tags
4 Replies
Robert
Posts: 10549
Admin
(@robert)
Support Team
Joined: 8 years ago

@t-niron,

There is no way to add that. wpForo search is a widget, here is the doc: https://wpforo.com/docs/wpforo-v2/getting-started/forum-sidebar-and-widgets/wpforo-widgets/

 

And here is a raw HTML code you can place in template files:

<div id="wpf-widget-search" class="wpforo-widget-wrap">        
<form action="/" method="get" id="wpforo-search-form">
<label class="wpf-search-widget-label">
<input type="text" placeholder="Search..." name="wpfs" class="wpfw-100" value="">
<svg onclick="document.getElementById('wpforo-search-form').submit();" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Guide"></g><g id="Layer_2"><path d="M13.85,13.15l-2.69-2.69c0.74-0.9,1.2-2.03,1.2-3.28C12.37,4.33,10.04,2,7.18,2S2,4.33,2,7.18s2.33,5.18,5.18,5.18   c1.25,0,2.38-0.46,3.28-1.2l2.69,2.69c0.1,0.1,0.23,0.15,0.35,0.15s0.26-0.05,0.35-0.15C14.05,13.66,14.05,13.34,13.85,13.15z    M3,7.18C3,4.88,4.88,3,7.18,3s4.18,1.88,4.18,4.18s-1.88,4.18-4.18,4.18S3,9.49,3,7.18z"></path></g></svg></label>
</form></div>
3 Replies
t.niron
(@t-niron)
Joined: 4 years ago

Estimable Member
Posts: 86

@robert Hello,

Thank you for the code. We tried this but pressing enter redirects to a page.

https://v4.nakvaryum.com/ ?wpfs=tesyt

Sampler Search Widget

Thank you

Robert
Admin
(@robert)
Joined: 8 years ago

Support Team
Posts: 10549

@t-niron,

I'm sorry, but I don't follow you. I have no other suggestion.

t.niron
(@t-niron)
Joined: 4 years ago

Estimable Member
Posts: 86

@robert Hello,

Thank you for the information. We try to fixed.