What is the easiest way to hide the search icon on the header and access to all of my product pages for users who are not logged in? I would like the website to redirect users to the home page when they try to access product page URLs.
I’m sorry, I was not clear. I need the search widget only hidden for non-logged in users. I would like this to hide the search option on the mobile menu for non-logged in users as well