Hi all,
We have a landing page template that was created during our HubSpot setup. This template does not include a language switcher but it would definitely make sense to have one.
We also have a “website template” but that is in our old CI and we are not using it. However, it includes the following code for a language switcher:
<div class="language-switcher mobile-language-switcher">
{% module "language_switcher" path="../../modules/language-switcher", label="Language Switcher" %}
</div>
The code for the language switcher module is as follows:
<div class="language-switcher-wrapper">
<button class="language-selector">
<i class="fa-solid fa-earth-europe" aria-hidden="true"></i>
<span class="language-text">
{{ module.english_ }} </span>
</button>
<ul class="dropdown-menu">
{% for item in module.language_items %}
<li class="dropdown-item dropdown-item-reset px-3">
{% set href = item.language_link.url.href %}
{% if item.language_link.url.type is equalto "EMAIL_ADDRESS" %}
{% set href = "mailto:" + href %}
{% endif %}
<a href="{{ href }}"
{% if item.language_link.open_in_new_tab %}target="_blank"{% endif %}
{% if item.language_link.rel %}rel="{{ item.language_link.rel }}"{% endif %}
>
<span>{{ item.language_text }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
The page on which I would like to add the language switcher module is the following: Events | Ingentis
Can someone help me figure out where to insert the language switcher code for it to appear in the header section of this page?
Thanks in advance!
Best,
Theresa
