Title: Adding Search Functionality
Last modified: August 21, 2016

---

# Adding Search Functionality

 *  Resolved [TrekRight](https://wordpress.org/support/users/trekright/)
 * (@trekright)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-search-functionality/)
 * Hi Everyone,
 * Any recommendations on the best way to add search functionality to my site without
   using widgets? I don’t think there is a shortcode available (by default).
 * Is adding a shortcode via PHP the best approach? (easy enough to do, but then
   I either need to set up a child theme or lose the ability to update Quark).
 * Or is there a particular plugin that works well with Quark?
 * Other options?
 * Thanks in advance for any help.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [Anthony Hortin](https://wordpress.org/support/users/ahortin/)
 * (@ahortin)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-search-functionality/#post-4395358)
 * You can add a search form using the following php. Simply add it to wherever 
   you’d like it displayed, such as the sidebar.
 *     ```
       <?php get_search_form(); ?>
       ```
   
 * Using the above php, Quark will render the WordPress built-in search form. If
   you want to customise it, simply create a searchform.php file and add something
   like the following…
 *     ```
       <form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>">
       	<label>
       		<span class="screen-reader-text">Search for:</span>
       		<input type="search" class="search-field" placeholder="Search …" value="" name="s" title="Search for:" />
       	</label>
       	<input type="submit" class="search-submit" value="Search" />
       </form>
       ```
   
 * You can read more about this on the [WordPress Codex](http://codex.wordpress.org/Function_Reference/get_search_form).
 *  Thread Starter [TrekRight](https://wordpress.org/support/users/trekright/)
 * (@trekright)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-search-functionality/#post-4395382)
 * Thanks, Anthony – much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding Search Functionality’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/quark/1.4.1/screenshot.png)
 * Quark
 * [Support Threads](https://wordpress.org/support/theme/quark/)
 * [Active Topics](https://wordpress.org/support/theme/quark/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/quark/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/quark/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [TrekRight](https://wordpress.org/support/users/trekright/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/adding-search-functionality/#post-4395382)
 * Status: resolved