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.

Posted on May 9th, 2007 by VK

Support this Site

If this article was useful and you want to help keep this site running, please consider a donation by clicking the PayPal Donate button below. Any amount is welcome. Thank you.

5 thoughts on “Add a Search Box to AdFlex

  1. Ollie

    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. Laurie

    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

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

47 queries. 0.332 seconds