BuddyBoss Home – Web Support Forums Themes Boss. theme Remove Global Search Bar Visibilty to Visitors

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

    #35920

    Anonymous
    @

    Hi,

    How could I remove the Global Search bar to visitors, but of course keep it for when a member is logged in?

    Ryan

    Answers

    #35929
    @style960
    #35937

    Anonymous
    @

    @style960,

    I copied and pasted the suggested code from the link into the Custom Functions section of my boss child theme, but it did not work. What do you think the issue could be? I copied it exactly as is and pasted, so if I was suppose to add anything such as brackets or something that may be it.

    #35938
    @style960

    @ryanmaler @tjchester I’m not sure looks fine to me, but you’re right, it doesn’t have an effect. Maybe a change in the theme update – anything new here TJ?

    #35971

    Alyssa
    Participant
    @alyssa-buddyboss

    @ryanmaler make sure all of the apostrophes (‘) are valid characters, sometimes when copying code from website they turn into backticks (`)

    This code is working on my child theme. Please make sure it is in the file functions.php in your child theme and that the child theme is the active theme. Many times when users update the parent theme they accidentally activate the parent theme not realizing the child needs to be the active theme.

    #35992

    Anonymous
    @

    @tjchester and @style960,

    Thanks for the help guys, I think it was the backticks that got me because I typed it out rather than copy and paste and it worked out.

    Thank you,

    Bucky

    #36001

    Alyssa
    Participant
    @alyssa-buddyboss

    Great, I’ll close this out.

    #59164
    @bryceevans

    Hi @tjchester

    Is there a way to implement this solution (https://www.buddyboss.com/support-forums/topic/hiding-search-box-andor-results-from-logged-out-users/) but also have the top bar menu be able to expand out further?

    I have the search bar hidden, but my menu is still compressed (see screenshot).

    #59400

    Anonymous
    @

    Hi @bryceevans, Please add this css code inside your boss theme’s custom css option

    
    @media screen and (min-width:481px){
    .page-template-page-no-buddypanel .header-wrap .header-inner .left-col {
      min-width: auto !important;
    }
    .page-template-page-no-buddypanel .header-wrap .header-inner .middle-col {
      width: 85% !important;
    }
    .page-template-page-no-buddypanel .header-navigation > div > ul {
      text-align: center!important;
    }
    }
    

    Regards

Viewing 9 posts - 1 through 9 (of 9 total)
  • The question ‘Remove Global Search Bar Visibilty to Visitors’ is closed to new replies.