Aled72
January 17, 2023, 5:34pm
1
Hello everybody,
I state that I am a newbie,
i’m creating a theme with BS5 and i can’t figure out how to connect the search form to the wordpress function to search the site.
Can you tell me if there is a smart action?
I have Pinegrow WP Pro
Thanks everyone for the help.
jonroc
January 18, 2023, 7:21pm
2
I believe you can use “Get Search Form” from the WP actions:
LMK if that does not work b/c you can also just put the HTML for the form directly into your page like this:
<form method="get" id="mobile_searchform" action="<?php echo get_site_url(); ?>" role="search" _lpchecked="1" class="shadow">
<label class="sr-only" for="s">Search</label>
<div class="input-group">
<input class="field form-control" id="s" name="s" type="text" placeholder="Search" value=""/><span class="input-group-append"> <input class="submit btn btn-primary" id="searchsubmit2" name="submit" type="submit" value="Search"/> </span>
</div>
</form>
2 Likes