I am using the built in hubspot language selector.
My site is available in two languages. I'm wondering if anyone knows how to hide the current language from the menu?
For example my main homepage is in English, when people hover over the globe icon, they see a list of English and Espanol (es). I would like them to only see Espanol, as the english is already present.
Vice-versa when they go to the spanish version of the site, I would like them to be presented with only English when they hover over the language selector.
I tried to go into the module code but there was not much there and the documentation does not discuss customisation options.
As a quick fix for anyone reading, I notice that Hubspot actually sorts the languages so that the active language is first. Therefore as a quick fix you can actually just use CSS to display: none on the first child (li) element in the list.
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.