Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress 2.6.4 Remove Default Search Bar


  • uksentinel
    Participant

    @uksentinel

    Hi

    Currently running bbPress 2.6.4 and would like to understand how to remove / hide the default search bar that appears at the top of the Forums page listings

    I have in a side bar widget set-up ‘GD Power Search for bbPress’ – (works very well), just need to remove the Search bar from the top of the Forums page as looks out of character for my forum

    Forum is https://uktechhub.com/forums/

    Thanks

Viewing 13 replies - 1 through 13 (of 13 total)

  • Robin W
    Moderator

    @robin-w

    put this in the custom css of your theme

    #bbpress-forums #bbp-search-form {
    	display: none !important;
    }

    uksentinel
    Participant

    @uksentinel

    Hi Robin, tried the custom CSS and it worked, thank you


    Robin W
    Moderator

    @robin-w

    🙂


    uksentinel
    Participant

    @uksentinel

    Hi Robin, just cleared the cache and found that via GD Power Search for bbPress plugin, the default search works, but when I then select advanced search, the page/script for advance search does not appear. Home › Forums › Search ?

    I have left it running an my site incase you get a chance to try for yourself, you do not need to be a forum member for searches etc on my site ?

    https://uktechhub.com/forums/


    Robin W
    Moderator

    @robin-w

    hmmm… css won’t do it then.

    you’ll need to amend content-archive-forum.php in your child theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.php

    transfer this to your pc and edit

    delete line 17

    <?php bbp_get_template_part( 'form', 'search' ); ?>

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-archive-forum.php

    bbPress will now use this template instead of the original


    uksentinel
    Participant

    @uksentinel

    Understood, will give this a try

    Thanks


    uksentinel
    Participant

    @uksentinel

    Just as an update, editing the content-archive-forum.php file worked and the GD Power Search for bbPress plugin now works as expected

    Many thanks for your guidance


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed !!


    flamuren
    Participant

    @flamuren

    Hello. I am trying to understand how to remove the search bar from the forum but not for the sidebar (where I want it to be all the time). If I uncheck “allow forum search” in the admin panel in WP both disappears. Is the only other way the above way?

    I am asking before doing anything, because that sound really difficult to me with zero experience with coding or webpages. I am learning by doing 🙂


    uksentinel
    Participant

    @uksentinel

    You and I both 😉

    Try the first option: as it does depend on your Theme

    i.e go to your Dashboard > Appearance > Customise > Additional CSS and cut and paste the following in there (exactly as it is)

    #bbpress-forums #bbp-search-form {
    display: none !important;
    }


    flamuren
    Participant

    @flamuren

    Oh my! Many thanks uksentinel! That worked for taking away the search bar above the forum and keeping the sidebar.

    Offtopic/sidenote: for every thing I do on my page I feel really proud of my self. Never knew I could even get a site up and running. Now I am doing code (however with extremely good guides from you guys ofc!) and I feel amazing 🙂 Thank you for helping out!


    uksentinel
    Participant

    @uksentinel

    life is a journey 😉


    Robin W
    Moderator

    @robin-w

    @flamuren always good to help others – I did my first site in 2012, and it’s great to get things doing what you want – hope you carry on enjoying the challenges 🙂

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.
Skip to toolbar