# Smart action for form search

**URL:** <https://forum.pinegrow.com/t/smart-action-for-form-search/7642>\
**Category:** Pinegrow WP\
**Tags:** wordpress\
**Created:** [January 17, 2023, 5:34pm UTC](https://forum.pinegrow.com/t/smart-action-for-form-search/7642 "2023-01-17T17:34:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aled72](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/aled72/32/2435_2.png) [@Aled72](https://forum.pinegrow.com/u/Aled72)\
**Post date:** [January 17, 2023, 5:34pm UTC](https://forum.pinegrow.com/t/smart-action-for-form-search/7642/1 "2023-01-17T17:34:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jonroc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/jonroc/32/2805_2.png) [@jonroc](https://forum.pinegrow.com/u/jonroc)\
**Post date:** [January 18, 2023, 7:21pm UTC](https://forum.pinegrow.com/t/smart-action-for-form-search/7642/2 "2023-01-18T19:21:22Z")

</div>

I believe you can use “Get Search Form” from the WP actions:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/7519b0532d1cb57dc05cfee9f53ac3b2d494165b.png)

LMK if that does not work b/c you can also just put the HTML for the form directly into your page like this:

```auto
<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>

```
