Support » Fixing WordPress » Remove search button – available help does not work

Viewing 14 replies - 1 through 14 (of 14 total)
  • widget:

    <div id="search" class="widget widget_search">
    <form id="searchform" method="get" action="">
    <input type="text" name="s" id="s" size="15" />
    <input type="submit" value="Search" />

    and it doesnt look a bit like what’s on that other site.

    1. are you using a widget? cuz thats a widget.
    2. are you using a cache plugin, like wp-cache?

    Thank you so much for the fast reply.

    I just found out it’s a widget alright.

    How may I remove the search button in this case ?

    🙂 I edited my post but you caught it before it changed 🙂

    If its a widget isnt it there listed in presentation –> widgets or whatever that page is?

    Hello. Yes its a widget named “search” and can be found under presentation >> widgets.

    However, it doesn’t seem that I can edit it in anyway.

    you dont edit it.. you drag it off the sidebar – the same way you drag on and off other widgets 🙂

    Hmm…maybe I’m lost here, but if I drag this widget off the search function disappears right ?

    Does it then mean that if I want a search function without the search button I will need a non-widget search ? How do I implement one ?

    the default k2 install comes with a search, I see it in the sidebar.php inside the zip.

    the default k2 sidebar includes a search, and its a widget:

    <?php /* Widgets/SBM Check */ if ( !(function_exists('dynamic_sidebar') and get_option('k2sidebarnumber') > 0 and dynamic_sidebar(1)) ) { ?>
    <div id="search"><h2><?php _e('Search','k2_domain'); ?></h2>
    		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

    Im going to bet thats whats making your search. so I was right above 2x .. its a widget and its the k2 search.

    What I would do is remove the widget and add the search out of the default theme to my sidebar.php. Then I would make the changes like you see on that other site. Maybe you can just copy that completely into your sidbar, I dunno, I didnt look that hard.

    Hello, I am going to try the changes that you have advised, thank you so much for your help ! I will post again to let you know if it went smoothly.

    Thank you so much again !

    Hello. I have tried to implement the changes but now my searchbar is not showing. This is what I have done.

    1) I removed the k2 search widget ( dragged it off )
    2) I removed this k2 search widget code from sidebar.php :

    <div id=”search”><h2><?php _e(‘Search’,’k2_domain’); ?></h2>
    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    3) I added this search code from wordpress’s default theme
    back into sidebar.php

    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    4) I changed the code for my searchform.php from the website in my first post.

    What did I do wrong ? Thank you so much for your help again !

    hang on 🙂 im doing it now ..

    ok, heres my k2 sidebar.php:

    it looks like this: bigboxasdfasdasd/

    the other thing I had to do was remove the call to the javascript inside header.php. Just remove this bit:

    if (get_option('k2livesearch') == 1) {

    once youve done that, then you can do those other changes.

    remove the spaces in that url if you want to see, I dont want that indexed by google so i broke it.

    Hello and thank you for investigating ! I will try to fix it again !

    Hello I have found a simple solution to remove the search button for the search widget :

    In the wp-includes folder ( in your wordpress installation folder ), open widgets.php and look for the wp_widget_search function definition block (around line 405 or so). Within the definition block, look for this line:

    <input type=”submit” value=”<?php echo attribute_escape(__(‘Search’)); ?>” />

    Simply edit the “submit” and change it to “hidden”, save, refresh your browser, and the submit button should be hidden now.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Remove search button – available help does not work’ is closed to new replies.