• Hello,

    I wonder if it is possible to remove the header search box from bp-default theme but keep it in a one specific page which is password protected or private.

    Or if not the above is there a short-code available which can be inserted in a page body / content area to produce the search box?

    I basically want to restrict the member search by their user name or real name but wish to keep this for admin use.

    Thank you for the help.

Viewing 1 replies (of 1 total)
  • Thread Starter mairaj

    (@mairaj)

    I found a css code to try removing search box. The code is as follows
    .registration #search-form, .activation #search-form { display: none; }
    Then, I used
    .page-id 20 #seach-form { display: none; }
    Removed it from all the pages, except the one I wanted to keep it on.
    I figured out using ‘page’ (.page #search-form { display: none; }) removes the box from every page but not blog posts and bp pages (like profile, activity etc.)

    Can somebody help me know how to define ‘blog posts’ and ‘buddypress pages’ to remove the search box from those pages too. I want to say something like following:

    .post #seach-form { display: none; }
    and
    .bp-page #seach-form { display: none; }

    I have tried ‘post’, ‘posts’, ‘post-page’, ‘blog’, ‘blog-page’ etc. and many values for buddypress pages as well but nothing works out.

    Please help me figure out the value to put to define the page types.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Hiding header search box other than specific page’ is closed to new replies.