Add a Search Box to AdFlex

Add a Search Box to AdFlex

How to add a Search Box to Ad Flex theme?

Just follow those steps to add a Search Box to AdFlex theme:
- On the server, located the folder:
WP_ROOT/wp-content/themes/ad-flex-blog/syndication
- In the folder, you’ll see the filename “_syndication_custom_search.php”
- Rename the file “_syndication_custom_search.php” to “syndication_custom_search.php”
- Open the file “syndication_custom_search.php”
- Add the following code at the end of the file content “syndication_custom_search.php”:

<ul>
<li>
<h2>Search</h2>
<ul>
<li>
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
<input type="text" value="Enter your search" name="s" id="s" onblur="if (this.value == '') { this.value = 'Enter your search';}" onfocus="if (this.value == 'Enter your search') {this.value = '';}" />
<input type="hidden" id="searchsubmit" />
</form>
</li>
</ul>
</li>
</ul>

- Save the file “syndication_custom_search.php”
- Connect to the WP Admin \ Presentation \ Ad Flex Options
- Locate the section “Sidebar Options”
- Scroll down to the parameter “Search Code Visibility” and enable it.
- Click on “Update All Options”

Now you can connect to your blog URL and you should see a Search Box on the sidebar.

Enjoy!

VK

Posted on May 9th, 2007 by VK

2 Responses

  1. May 10th, 2007 | 11:10 pm

    Thanks for that!

    For the ones that like to use the Google Search function put the Google Search code in it instead!

    Search

    Ollie

  2. May 16th, 2007 | 8:41 am

    Hey, thanks VK!

    Works like a charm.

    I’ve put it on my news site where it is very appropriate.

    Regards,
    Laurie.

Leave a reply