BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Global Search in Header

Viewing 5 posts - 1 through 5 (of 5 total)
  • Question

    #35989
    @jgwolfensberger

    Looks like this thread died in November: https://www.buddyboss.com/support-forums/topic/add-search-box-to-header/

    Now that your Global Search widget is available, it would be staggeringly awesome to be able to put it on the header as shown in the attached mock-up.

    Does anyone know how this could be done? I’m not very good with functions and I’m only slightly dangerous with CSS. 😉

    James

    Answers

    #36002

    Alyssa
    Participant
    @alyssa-buddyboss

    @jgwolfensberger unfortunately the location you chose would conflict with the wp toolbar if set to float right.
    It is as simple as copying header.php to your child theme and adding this above the menu HTML:

    <div class="custom-search">
    <?php get_search_form(); ?>
    </div>

    Then add something like this to custom.css:
    .custom-search{right:20px;}
    Might need to add position:absolute; as well

    #36007
    @jgwolfensberger

    Thanks @tjchester… I’m working with it. 🙂

    #36023

    Alyssa
    Participant
    @alyssa-buddyboss

    Cool

    #36024

    Alyssa
    Participant
    @alyssa-buddyboss

    Cool

Viewing 5 posts - 1 through 5 (of 5 total)
  • The question ‘Global Search in Header’ is closed to new replies.