Add Search To WordPress Site

Want to add search to WordPress run websites?

Often times search is easily added through Widgets, or sometimes it is built into a theme already. But, what if you want the search in the footer or to appear at the bottom of every page? Using the PHP code provided below you’ll be able to add search functionality to your site in no time:

<?php get_search_form(); ?>

 

Adding Search to WordPress Footer

Click on the file name footer.php in the Dashboard editor. Then paste the code into an area on the footer that is in relation to the copyright area of the code. You’ll be able to tell by site info PHP code. Paste the code above the copyright code and see how that looks. If it looks bad try adding it below the copyright info. If it still looks bad, or out of place, you will need to use CSS to control it’s location and placement.

Adding Search to Bottom of Every WordPress Page

Click on the file name page.php in the Dashboard editor. Then paste the code into the space right above the PHP code that calls the footer, which usually looks something like this: <?php get_footer(); ?>

That’s how you add search to WordPress sites, and there are many other places that code can be added.

Avatar photo

Written by: Jophiel Silvestrone

Jophiel Silvestrone has written 326 posts in the Tech Blog.

Jophiel grew up on a ranch in Paradise Valley, Montana near Chico Hot Springs. Working on the ranch instilled work ethic and self motivation. Filled with this drive, Jophiel started mowing the local school's yards twice a month throughout the summers, at the age of 12. He moved to Billings in 2004, where he has been deeply involved in the local business community ever since. A serial entrepreneur, Jophiel has ran multiple businesses in our local community. The first business, a janitorial and carpet cleaning company, founded in 2005, has employed over 50 locals. Moving on to the media industry, Jophiel and several partners founded Green Directory Montana in the spring of 2007. Green Directory's sustainability ranking software awarded points based on sustainable or "green" actions. These points counted towards a business's total "Green Score," which in turn ranked them against other businesses in their category and throughout the entire site. It also featured a limited edition print version distributed annually. A business acquisition allowed Jophiel to focus on new projects, and a few close business colleagues and Jophiel started Rocky Mountain Mr. & Ms. Magazine, a lifestyle publication for men and women in the Magic City. After a year and a half at the helm of RM3 Magazine, the business was purchased. He now runs a web development company SkyPoint Studios and fathers his son Jaoquin, who plays football, basketball, soccer, and is learning snowboarding from his dad. Recently, has expanded to locations in Havasu, Arizona & Vegas. SkyPoint Studios is a market leader in both Billings & Havasu and Jophiel is working on building that same level of market dominance in Vegas. Specialties: Extensive experience in online and offline business. Especially savvy at WordPress, and operate several sites, one example is the blog: skypointwebdesignbillingsmontana.com/tech-blog. Check out skypointwebdesignbillingsmontana.com for the latest projects from SkyPoint Studios.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.