Add a Search Box to AdFlex

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 in AdFlex on May 9th, 2007, 5:59 pm by VK   

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

  3. June 22nd, 2008 | 2:19 am

    Didn’t work for me, I’ve tried it several times.

  4. July 23rd, 2008 | 10:32 pm

    Isit possible to add a “Go” Icon beside the search?

    In case visitors have “faulty keyboards” :)

    Bran

  5. June 24th, 2009 | 8:38 am

    For me it worked fine, no problems. It looks a lot better too with the searchbox, allthough not many people use them, it is a kind of service you have to have on your website I think….

  6. October 23rd, 2009 | 1:44 pm

    What’s down the road in the future? ,

  7. October 29th, 2009 | 8:43 pm

    having a search box was a brilliant idea,
    It’s A Masterpiece!……………..:)

  8. VK
    December 7th, 2009 | 8:49 pm

    Yes, sure :) It seems that now we get used to need a search box on every web sites to quickly find what we’re looking for.

  9. VK
    December 7th, 2009 | 9:05 pm

    What do you mean? Please contact me directly if you need talk or more info. My contact info is located on the web site http://www.vklabs.com

Leave a reply