• I am using another plugin for search system. I Don’t want visitors to mess up with the results shown by default wordpress search option.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    You may want to use css to hide it.

    There is a error404 class in HTML body, you can use it to target css on 404
    The search box is in div with class name entry-content.

    Thank you

    Thread Starter Yanur Islam Piash

    (@yipiash)

    Hi,

    Unfortunately I wasn’t able to inspect the exact css code. I found the class for the entire box and hid that by css below:

    article.error404 .entry-content, article.format-chat .entry-content, article.format-quote .entry-content {
        display: none;
    }

    Now the page looks like this: https://www.bohubrihi.com/asldjnasd

    Hi,

    Glad to know that you had managed to come up with a solution.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to hide the ‘search box’ from the ‘404 not found’ pages?’ is closed to new replies.