BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Always show search form on mobile
Tagged: mobile, search form
- This topic has 10 replies, 3 contibutors, and was last updated 8 years, 9 months ago by Anonymous.
Question
January 29, 2016 at 8:37 am #57542@lahirHi @tomastd
I see on this thread https://www.buddyboss.com/support-forums/topic/mobile-options-always-with-global-search-bar/ that you have a solution to show always the search form on mobile (even for logged out users)
Can you please let me know exactly which piece of code you replaced by ” <?php if(get_option(‘boss_search_instead’) == ‘1’ ) : ?>”
Thank you in advance
Answers
January 30, 2016 at 2:16 am #57593@
AnonymousHi @lahir, Please copy the header-mobile.php and paste it into your child theme at same path and then edit with existing search code line 13 to 18.
Regards
January 30, 2016 at 4:22 am #57606@lahirHi @pallavi
Didn’t work for me, can you please paste here the exact code that needs to be replaced?
Thank you.
February 4, 2016 at 11:29 am #58106@lahirHi @pallavi
Any updates please?
Thanks
February 5, 2016 at 7:43 am #58210@
AnonymousHi @lahir, Please Activate the Search Input from boss theme’s layout option to enable search box in mobile view.
Regards
February 5, 2016 at 8:13 am #58212@lahirHi @pallavi
That was already done, Search Input is active in mobile options, but that works only for logged in users.
What we are talking about in this thread is always having the search bar on mobile (for logged out and logged in users).This seems to be already done by @tomastd on https://www.buddyboss.com/support-forums/topic/mobile-options-always-with-global-search-bar/ but I couldn’t find out which code to change exactly.
Please let me know, thanks
February 5, 2016 at 10:25 am #58223@tomastd1.- Copy this file and the route, from Boss theme, to your child theme: /template-parts/header-mobile.php
2.- Change the line 14 in your child theme file:
from: if ( boss_get_option( ‘boss_search_instead’ ) && is_user_logged_in() ) {
to: if ( boss_get_option( ‘boss_search_instead’ ) ) {It works for me. 😉
Regards!!!
February 8, 2016 at 5:13 am #58470@lahirThank you @tomastd
I did exactly as per your instructions, didn’t work for me 🙂 the website started showing Admin on frontend (attached screenshot).
Not sure if @pallavi or @vapvarun can assist us with this, as we need to always show search form on mobile (for both logged in/logged out users).
Regards
February 9, 2016 at 1:17 pm #58683@
AnonymousHi @lahir, Please send admin credentials along with FTP to the email [email protected] with thread url…I will check that.
Regards
February 11, 2016 at 2:46 am #58904@lahirThank you @pallavi appreciate that.
As this was the staging website, can you please tell me which changes you did exactly as I need to update these changes on the live website?
Thanks again
February 11, 2016 at 1:04 pm #58951@
AnonymousHi @lahir, Replied on it through mail please that.
Regards
- The question ‘Always show search form on mobile’ is closed to new replies.