CMS Development

hpdsmith
Member

Language Selector HTML

Hi there, 

 

Trying to set up the language selector on one of our websites but the template is in Custom HTML, is there any way of inputting the language selector as HTML code? And if so how would I set it up? 

 

Thanks, 

Harry 

0 Upvotes
1 Reply 1
Stephanie-OG
Key Advisor

Language Selector HTML

Hello!

 

The Language Switcher module itself is just a snippet of HubL:

 

language-switcher.png

 

Therefore you should just be able to add that piece of code to your coded template for the Language Switcher:

 

{% language_switcher display_mode='{{ module.display_mode }}' %}

However, in general in a custom module, on the right-hand side you'll see that "Template Usage" section that appears on the right-hand side of the screenshot above that displays the snippet you can for that module in your coded template.

 

I hope that helps!

 


Stephanie O'Gay GarciaHubSpot Design / Development

Website | Contact

 

If this helped, please mark it as the solution to your question, thanks!