I am trying to implement a solution to have one header display for the mens section and one other different header for womens.
What I’ve thought so far is of using localStorage to set a key if a mens/womens page is accessed.
However I’m struggling when using liquid within js. Does anybody know how to fix this? As this is not working properly at the moment.
@lodi1712 , Could you please share your store URL? And also share the error that you are facing after implementing the above code.
@lodi1712
firstly, share the store URL and let us know what your requirement in details. We think this is also possible with Liquid Code
are you want to show different header for the different collections ‘men’ and ‘women’ ?
thats correct. url is https://85cdee.myshopify.com with password ‘password’. i just want to make a different header when the womens section is entered.
@lodi1712
where the second header for women?