BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Remove Global Search Bar Visibilty to Visitors
Tagged: boss, Global Search
- This topic has 8 replies, 5 contibutors, and was last updated 8 years, 9 months ago by Anonymous.
Question
February 13, 2015 at 7:29 pm #35920@
AnonymousHi,
How could I remove the Global Search bar to visitors, but of course keep it for when a member is logged in?
Ryan
Answers
February 14, 2015 at 4:37 am #35929@style960@ryanmaler This is what you need – https://www.buddyboss.com/support-forums/topic/hiding-search-box-andor-results-from-logged-out-users/
February 14, 2015 at 12:25 pm #35937@
AnonymousI 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.
February 14, 2015 at 12:38 pm #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?
February 14, 2015 at 3:31 pm #35971@alyssa-buddyboss
AlyssaParticipant@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.
February 14, 2015 at 7:25 pm #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
February 15, 2015 at 9:58 am #36001@alyssa-buddyboss
AlyssaParticipantGreat, I’ll close this out.
February 14, 2016 at 2:14 am #59164@bryceevansHi @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).
February 16, 2016 at 11:16 am #59400@
AnonymousHi @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
- The question ‘Remove Global Search Bar Visibilty to Visitors’ is closed to new replies.