Thesis SearchBox Tip — How To Manually Add The Thesis Search Box

April 28, 2011

Thesis Tips — How To Manually Add The Thesis Search Box

Thesis WordPress Theme simplifies the task of placing the widgets to widgetized areas like sidebars. It is a matter of simply dragging and dropping the widget to the required location. The problem arises when you need to place the widgets to your preferred location in the theme template; like in the header or the footer. Adding the widget in header or footer area calls for widgetizing the respective areas. And if you don’t like to go that way here’s what to do.

The custom_functions.php file comes in handy for manually adding the widgets to desired location. Here’s the solution for manually adding the Thesis search box by editing custom_functions.php. The essential piece of the code is thesis_widget_search(); which outputs the search box. To put it in the sidebar you can enclose it in the <li> tag like following.

Add the following lines of code to custom_functions.php:

?> <li class="widget">
<?php
thesis_widget_search();
?>
</li> <?php

Check out the article on WordPress hacks to customize your WordPress themes and power up the features of your blog  with functions.php.

thesis_widget_search();

 

Join 37,807 others and get free tutorials & tips on design & development using Wordpress on, Thesis & Genesis!

Need help with Wordpress, Thesis or Genesis?

Are you a designer or a developer looking for a hand with Wordpress, Thesis or Genesis? Or perhaps want to save time with a project? Get in touch and let's get the ball rolling! Check out our Thesis development, PSD to Thesis & other services.

{ 1 comment on Thesis SearchBox Tip — How To Manually Add The Thesis Search Box… read it below or add one }

Rasel Rony March 5, 2012 at 6:54 pm

thanks for the tutorial, I’ve added a cool search box on my thesis sidebar

Comment on Thesis SearchBox Tip — How To Manually Add The Thesis Search Box

You can add images to your comment by clicking here.

Previous post:

Next post:

X

Wordpress, Thesis, Genesis tutorials from Binary Turf — one tutorial a day. Subscribe & sharpen your web design skills.

Name:

Email:

We respect your email privacy.