I want to move localisation form or language selector from footer to header. And actually I copied its code and made a new snippet and included it in header, after this that language selector is showing in header but dropdown is not working.
Actually this is my store address:- https://firelotus.myshopify.com/
Also I attached code pics.
Till now I did following:-
1. Added language selector from shopify admin and automatically it gets added to footer.
2. Then I searched the complete code for language selector in footer.liquid
3. Then I copied that part. I mean edited some part. then made
store-language.liquid in snippet folder and included it in header.
4. Now that language selector is showing in header but dropdown is not working.
I have attached images if u need to look. Also I have another similiar question. Like If I want to include some code of footer like subscribe search bar in some custom section which I have made. how to do that?
Any help would be greatly appretiated
Thanks for reply. I added code for language selector from footer to header. That language selector and dropdown menu to chose language showing. But its not working. When I click on it nothing happens.
As you mentioned you also added js code which was needed to make it work! how to find that js code?
I checked theme.js but I didnt find exactly which part of code should I copy.
Could you please explain little bit more about the js part in your answer. BTW i guess you are right I have added simple html code but because js not working it is not working.
yeah I was able to move move the language selector from footer to header, By installing this free app. Translation Lab.
I have attached screenshot for your reference also you can see my store also in which I have implemented the same.
https://lotus-greens.myshopify.com/ password : - Whitelotus
I hope my answer helped you. If It was helpful please accept it as a solution.