WordPress.org

Support

Support » Themes and Templates » [Resolved] How to remove entire search box in Berita theme

[Resolved] How to remove entire search box in Berita theme

  • Ailujjj

    @ailujjj

    I am trying to remove the Search Box in full.

    You can view it here : http://bizzartic.com/bizzthemes/berita/

    I have managed to remove the coloured border and image, and changed the colour of the word “search” to the background. However, I can’t get rid of
    a) the white box/field
    b) the word “search”

    Where and how should I be trying to eliminate these?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael

    @alchymyth

    Forum Moderator

    unless you edit the php files, i.e. header.php, and delete the searchform part there, you could use a css trick:
    add this at the end of style.css:
    #searchform {display:none;}

    flsunshine

    @flsunshine

    Find this code in the header.php file and delete it.

    <div class="grid_4" id="search-spot">
    
    			<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/" class="search-form">
    
    			    <input type="text" value="<?php echo get_option('bizzthemes_search_name'); ?>" name="s" id="s" class="field" onfocus="if (this.value == '<?php echo get_option('bizzthemes_search_name'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php echo get_option('bizzthemes_search_name'); ?>';}" />
    
    			    <button class="search-btn" type="submit" name="submit"><!----></button>
    
    			</form>
    
    		</div><!--/search-spot-->
    Ailujjj

    @ailujjj

    Great, thanks for your help! I removed the related code in the header.php file and it is all gone 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] How to remove entire search box in Berita theme’ is closed to new replies.
Skip to toolbar