# Change footer language

**URL:** <https://community.hubspot.com/t/change-footer-language/40411>\
**Category:** CMS Development\
**Created:** [July 8, 2021, 7:07pm UTC](https://community.hubspot.com/t/change-footer-language/40411 "2021-07-08T19:07:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lait](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lait/32/29368_2.png) [@lait](https://community.hubspot.com/u/lait)\
**Post date:** [July 8, 2021, 7:07pm UTC](https://community.hubspot.com/t/change-footer-language/40411/1 "2021-07-08T19:07:27Z")

</div>

Hello,

I have a template page in English and French (landing\_page.html and landing\_page\_fr.html + footer.html and footer\_fr.html). I would like to add a logic to my base.html file (see last lines of code below) to change the footer, according to the page’s language (i.e. if I am on the French page I should have footer\_fr and vice versa).

Any help would be appreciated. Thank you

```lia-code-sample
<!--
 templateType: none
-->
<!doctype html>
<html lang="{{ html_lang }}" {{ html_lang_dir }}>
 <head>
 <meta charset="utf-8">
 {% if page_meta.html_title %}<title>{{ page_meta.html_title }}</title>{% endif %}
 {% if site_settings.favicon_src %}<link rel="shortcut icon" href="{{ site_settings.favicon_src }}" />{% endif %}
 <meta name="description" content="{{ page_meta.meta_description }}">
 {{ require_css(get_asset_url("../../css/main.css")) }}
 {# This is intended to be used if a template requires template specific style sheets #}
 {% if template_css %}
 {{ require_css(get_asset_url(template_css)) }}
 {% endif %}
 {{ require_js(get_asset_url('../../js/read-more.js')) }}
 {{ require_js(get_asset_url('../../js/mobile-signup-button.js')) }}
 {{ require_js(get_asset_url('../../js/submit-form.js')) }}
 {# JS for field format masks #}
 {{ require_js('https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js') }}
 {{require_js('https://cdnjs.cloudflare.com/ajax/libs/libphonenumber-js/1.9.19/libphonenumber-js.min.js', 'head')}}
 {{ require_js(get_asset_url('../../js/fields_masks.js')) }}
 {#{ require_js(get_asset_url('../../js/fields_validators.js')) }#}
 {# To see a full list of what is included via standard_header_includes please reference this article: https://developers.hubspot.com/docs/cms/hubl/variables#required-page-template-variables #}
 {{ standard_header_includes }}
 </head>
 <body>
 <div class="body-wrapper {{ builtin_body_classes }}">
 {% block header %}
 {#% include '../partials/header.html' %#}
 {% endblock header %}

 {% block body %}
 {% endblock body %}

 {% block footer %}

 {#This is not working, not sure what variable I should use#}
 {% if 'landing_page.html' %}
 {% include '../partials/footer.html' %}
 {% elif 'landing_page_fr.html' %}
 {% include '../partials/footer_fr.html' %}
 {% endif %}

 {% endblock footer %}
 </div>
 {# To see a full list of what is included via standard_footer_includes please reference this article: https://developers.hubspot.com/docs/cms/hubl/variables#required-page-template-variables #}
 {{ standard_footer_includes }}
 </body>
</html>

```

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [July 9, 2021, 8:23am UTC](https://community.hubspot.com/t/change-footer-language/40411/2 "2021-07-09T08:23:38Z")

</div>

You could do

```lia-code-sample
{% if content.language.languageTag == 'fr' %}
 {% include '../partials/footer_fr.html' %}
{% else %}
 {% include '../partials/footer.html' %}
{% endif %}

```

Although it would be easier to be have one footer module that is a global module. Global modules can be translated and the logic for displaying the correct translation is done for you:

 ![piersg_0-1625818932582.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/3/436c512f9e40d9382e05095a0b80cbb97e4af032.png)

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [July 9, 2021, 10:29am UTC](https://community.hubspot.com/t/change-footer-language/40411/3 "2021-07-09T10:29:07Z")

</div>

Hi @lait ,

You can change the footer and header navigation according to a different language. Please refer to these documents. [Create pages in multiple languages](https://knowledge.hubspot.com/website-pages/create-pages-in-multiple-languages)

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.
