Hide Search bar in help Center home page

Answered

8 Comments

  • Ifra Saqlain
    Community Moderator

    Hey Andrea,

    You can remove this helper from your home_page.hbs :

    {{search submit=false instant=settings.instant_search class='search search-full'}}

    or may be there is

    {{search}}

     

    Now searchbar would be remove from there.

     

    You want to add only Thank You Message  so you can add text on there and add anchor tag ex:

    <h1> Thank you message </h1>

    <a href="#"> Add link of your website here </a>

     

    It depends on you where would you add these? If you want to use homepage as landing so remove all code from homepage and add this:

    <h1> Thank you message </h1>

    <a href="#"> Add link of your website here </a>

     

    If any issue let me know :)

    Thank you

    Team

    0
  • Cust Admin KN

    Yes! With

    {{search submit=false instant=settings.instant_search class='search search-full'}}

    search box is gone. There is only magnifier icon, can you help me to remove it too ?

    with this:

    <h1> Thank you message </h1>

    I can write in homepage correctly, but is on the left on the screen, I'm trying to write it centered

    Weird thing on the link:

    <a href="#"> Add link of your website here </a>

    inserted my homepage, but hover show HC link, if I click nothing happens...

     

    Thank you very much for help, very appreciated

     

     

    0
  • Ifra Saqlain
    Community Moderator

    Okay,
    Remove # and add your websites's link in anchor tag.

    there would be use some css code for fix text center align.

    Magnifier icon comes from css code.

    so that need to be remove but not directly , there would be use parent class.

    1
  • Ifra Saqlain
    Community Moderator

    Can you provide your hc link so I can fix it and give you the code.

    0
  • Cust Admin KN

    Hi Ifra,

    I Fixed alignement, removing all code and adding a DIV Style did all tricks, magnifier gone and text centered

    Thanks for help for link, now everything it's ok

    HC Homepage is lost, but it's what I need by now

    We'll recover standard HP when Guide will be ready

    Thanks for your precious support

    Cheers!

     

    0
  • Chris Hardy

    Is there a way to hide the search bar when a user isn't signed in?  We'd like all the articles behind the sign-in but the search bar is still visible when not signed in.  This can cause confusion because someone can search in it but no articles are returned.  

    Thanks
    Chris

    0
  • Bruce Michelsen

    In the home_page.hbs file in your theme, surround the search with if signed_in statements:

    {{#if signed_in}}
    {{search submit=false instant=settings.instant_search class='search search-full'}}
    {{/if}}

    1
  • Chris Hardy

    Thanks, Bruce.  Worked perfectly!

    0

Please sign in to leave a comment.

Powered by Zendesk