How to display the Search Box to certain membership levels only in Artificer?

Hello,

How to display the 'Search Box' to certain membership levels only in Artificer? I would like to disable (hide) it for the following membership levels: Unauthenticated, Account, Unconfirmed, Pending, and Suspended.

I can't find the place to set its visibility in the site navigation/menu settings.

Thanks

  • 753
  • More
Replies (7)
    • Hello @OneEagle !

      You need to add the RAW block with the following content:

      <this is the style tag>

      .bx-artificer {

      display: none;

      }

      </style>

      and make it available only for certain levels.

      • Hi @LeonidS 

        Please can you post again the content to add? It doesn't show in your reply, maybe because of the editor.

          • Thanks a lot. Where in the Pages module should I add it? I would like to add it globally.

            • You can't do it globally because you need to have it for specific levels. So it's possible only to paste to every page where you need it.

              • Hi @LeonidS

                The code you prodived above didn''t work. I had to modify it. The one that worked for me is:

                <this is the style tag>

                .bx-ti-search {

                display: none;

                }

                </style>

                Thank you.

                • Hello @LeonidS

                  In order to hide the search box to visitors/guests globally, I have put the following code in Designer < Injections > Body injections:

                  <div class="bx-hide-when-logged-in">
                    <style>
                      .bx-ti-search {
                      display: none;
                      }
                    </style>
                   </div>
                  

                  As you can see, I have used the "bx-hide-when-logged-in" attribute and put the css style code inside a div to force it to work when people are logged out.

                  The css style works great globally. The search box is hidden globablly but the problem is that it is hidden for both "bx-hide-when-logged-in" and "bx-hide-when-logged-out". it seems to me that the "bx-hide-when-logged-in" works great with anything else but not the style

                  How to get that css style to apply only when "bx-hide-when-logged-in" is used? Any idea? Thanks

                  Login or Join to comment.