Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How do you add a search bar to a theme?

RaizeRaize vancouver ✭✭
edited October 2010 in Vanilla 2.0 - 2.8
The weirdest thing just happened. I'm using a theme called VanillaPress2010 which doesn't have a search box. So I decided to add a google search box. I added the code to a page, but when I do a search instead of the search results, a normal Vanilla styled search box shows up on the page. If I type in a query to this search box it gives me Vanilla styled search results! Where could it possibly be coming from...

Comments

  • Options
    RaizeRaize vancouver ✭✭
    I figured out this is the code for the search box

    <div id="Content"> <div class="Tabs SearchTabs"><form method="get" action="/forum/search"> <div> <input type="text" id="Form_Search" name="Search" value="" class="InputBox" /><input type="submit" id="Form_Search1" value="Search" class="Button" /> </div> </form></div> </div>
  • Options
    RaizeRaize vancouver ✭✭
    What I did is create a new page using the Custom Pages plugin and add that code to it. Works great, but it would be better if I could get it to show at the top of the discussion list without breaking the layout... that's next
Sign In or Register to comment.