BuddyBoss Home – Web Support Forums Themes Boss. theme Always show search form on mobile

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

    #57542
    @lahir

    Hi @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

    #57593

    Anonymous
    @

    Hi @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

    #57606
    @lahir

    Hi @pallavi

    Didn't work for me, can you please paste here the exact code that needs to be replaced?

    Thank you.

    #58106
    @lahir

    Hi @pallavi

    Any updates please?

    Thanks

    #58210

    Anonymous
    @

    Hi @lahir, Please Activate the Search Input from boss theme's layout option to enable search box in mobile view.

    Regards

    #58212
    @lahir

    Hi @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

    #58223
    @tomastd

    1.- 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!!!

    #58470
    @lahir

    Thank 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

    #58683

    Anonymous
    @

    Hi @lahir, Please send admin credentials along with FTP to the email @buddyboss.com">support@buddyboss.com with thread url…I will check that.

    Regards

    #58904
    @lahir

    Thank 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

    #58951

    Anonymous
    @

    Hi @lahir, Replied on it through mail please that.

    Regards

Viewing 11 posts - 1 through 11 (of 11 total)
  • The question ‘Always show search form on mobile’ is closed to new replies.