WordPress.org

Support

Support » How-To and Troubleshooting » How to remove the search bar on front page

How to remove the search bar on front page

Viewing 1 replies (of 1 total)
  • Hi avadanicosmin,

    NB! First make a back-up copy of style.css, so you can restore it should this be required / results don’t meet expectatins 😉

    Line 275 of the file ‘style.css reads:

    header[role="banner"] #s, .entry-content #s {
        font-size: 1.3em;
        background: url("library/images/icon-search.png") no-repeat scroll 7px 10px rgb(255, 255, 255);
        padding: 7px 10px 7px 30px;
        border: 3px solid rgb(255, 255, 255);
        box-shadow: 3px 3px 9px rgb(208, 208, 208) inset;
        min-width: 270px;
        outline: medium none;
    }

    add to this: visibility:hidden;
    result:

    header[role="banner"] #s, .entry-content #s {
        font-size: 1.3em;
        background: url("library/images/icon-search.png") no-repeat scroll 7px 10px rgb(255, 255, 255);
        padding: 7px 10px 7px 30px;
        border: 3px solid rgb(255, 255, 255);
        box-shadow: 3px 3px 9px rgb(208, 208, 208) inset;
        min-width: 270px;
        outline: medium none;
        visibility: hidden;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove the search bar on front page’ is closed to new replies.
Skip to toolbar