Remove Search Box in BP-Corporate Theme

Hi,

How do I remove the members "searchbox" from pages other than the members area and groups area?

Thanks

  • Richie_KS
    • HummingBird

    try this method

    openup header.php for bp-corporate and search for bp_search_form()

    edit/add the line as follow:

    <?php if(!bp_is_blog_page()) { ?>

    <?php bp_search_form() ?>

    <?php } ?>

    *bold: added line

    that should hide the searchbox other than member slug or group slug

    cheers

  • saraswati1111
    • Design Lord, Child of Thor

    Hi,

    Thanks, that removed the search box but the appearance is still the same, i.e. there is still admin/logout button on the far right side and there is still the "images/searchbox.jpg there.

    Should I create a new css div id for the blog_page that doesn’t have the search box and remove the background image and change spacing?

    Thanks for your help, Chris

  • Richie_KS
    • HummingBird

    in that case..just edit the line again like this

    <?php if(!bp_is_blog_page()) { ?>

    <div id="searchbox">

    <?php if($bp_existed == ‘true’:wink: { ?>

    <?php bp_search_form() ?>

    <div id="fc_wrap">

    <?php bp_login_bar() ?>

    <?php do_action(‘fbc_display_login_button’:wink: ?>

    </div>

    <?php } else { ?>

    <?php include (TEMPLATEPATH . ‘/profile.php’:wink:; ?>

    <?php } ?>

    </div>

    <?php } ?>

    bold: added code line in header.php

    this will remove the entire searchbox bar in place other than group slug and member slug.

    cheers