<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Language switcher style in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/342938#M16834</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94650"&gt;@mansigovani&lt;/a&gt;&amp;nbsp;this will display the current language without the need to write any additional Javascript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if content.translated_content|length %}
    &amp;lt;div class="header__language-switcher header--element"&amp;gt;
        &amp;lt;div class="header__language-switcher--label"&amp;gt;
        {% module "language-switcher" path="@hubspot/language_switcher", display_mode='localized', label="Language Switcher" %}
        &amp;lt;div class="header__language-switcher--label-current"&amp;gt; {{ locale_name(locale) }}&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;P&gt;You can see more info here: &lt;A href="https://designers.hubspot.com/docs/features/multi-language-content#include-a-language-switcher" target="_blank" rel="noopener"&gt;https://designers.hubspot.com/docs/features/multi-language-content#include-a-language-switcher&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 16:12:51 GMT</pubDate>
    <dc:creator>piersg</dc:creator>
    <dc:date>2020-05-29T16:12:51Z</dc:date>
    <item>
      <title>Language switcher style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202125#M7599</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to implement a language switcher on my HubSpot pages. For some reason in my case it doesn't look that good so far&amp;nbsp;&lt;A href="https://edge.thinkstep.com/fr-fr/" target="_blank"&gt;https://edge.thinkstep.com/fr-fr/&lt;/A&gt; (globe icon on the right). Neither the globe nor the dropdown look good. And I also can't get a globe &lt;STRONG&gt;and&lt;/STRONG&gt;&amp;nbsp;the current selected language displayed (even when editing the .globe_class CSS class).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of having the language switcher styled exactly like the one I found on this page&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/articles/kcs_article/cos-general/how-to-manage-multi-language-content-with-hubspots-cos" target="_blank"&gt;https://knowledge.hubspot.com/articles/kcs_article/cos-general/how-to-manage-multi-language-content-with-hubspots-cos&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.hubspot.com/t5/image/serverpage/image-id/11162iCB68A566C18C813B/image-size/large?v=1.0&amp;amp;px=-1" border="0" width="263" height="307" title="Unbenannt.png" alt="Unbenannt.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank&amp;nbsp;you!&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 07:30:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202125#M7599</guid>
      <dc:creator>rafael_ibrahimi</dc:creator>
      <dc:date>2018-08-15T07:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Language switcher style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202161#M7606</link>
      <description>&lt;P&gt;Hi Rafael.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you can add your own CSS to your stylesheet to override the default CSS for the Language Switcher module. For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.lang_switcher_class:after {
    content: 'Language';
}&lt;/PRE&gt;&lt;P&gt;Will add the word "Language" after your globe and so on (you should be able to use JavaScript to have it switch to the current language).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you Inspect Element on the module you should be able to find other classes you can style (e.g.&amp;nbsp;lang_list_class for the drop-down list).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development / Automation&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 12:34:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202161#M7606</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-08-15T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Language switcher style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202173#M7608</link>
      <description>&lt;P&gt;Thank you Stephanie!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The word "language" now appears under the globe instead of appearing beside it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://gabi.thinkstep.com/us/life-cycle-assessment" target="_blank"&gt;https://gabi.thinkstep.com/us/life-cycle-assessment&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the exact same code you provided. Can you help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 13:56:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202173#M7608</guid>
      <dc:creator>rafael_ibrahimi</dc:creator>
      <dc:date>2018-08-15T13:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Language switcher style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202182#M7611</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I provided was only a sample of how to start styling the Language Switcher module. You'll need to continue using CSS to style the module accordingly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can move the text using CSS positioning, for example like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.lang_switcher_class:after {
   content: 'Language';
   position: absolute;               
   top: 50%;                      
   transform: translate(35%, -50%);
}&lt;/PRE&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development / Automation&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 14:14:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202182#M7611</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-08-15T14:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Language switcher style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202312#M7626</link>
      <description>&lt;P&gt;This is great, thank you a lot Stephanie!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 09:49:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/202312#M7626</guid>
      <dc:creator>rafael_ibrahimi</dc:creator>
      <dc:date>2018-08-16T09:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Language switcher style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/317540#M15230</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&amp;nbsp;, can you please share the Javascript to display the current language?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 16:16:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/317540#M15230</guid>
      <dc:creator>mansigovani</dc:creator>
      <dc:date>2020-02-07T16:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Language switcher style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/342938#M16834</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/94650"&gt;@mansigovani&lt;/a&gt;&amp;nbsp;this will display the current language without the need to write any additional Javascript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if content.translated_content|length %}
    &amp;lt;div class="header__language-switcher header--element"&amp;gt;
        &amp;lt;div class="header__language-switcher--label"&amp;gt;
        {% module "language-switcher" path="@hubspot/language_switcher", display_mode='localized', label="Language Switcher" %}
        &amp;lt;div class="header__language-switcher--label-current"&amp;gt; {{ locale_name(locale) }}&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;P&gt;You can see more info here: &lt;A href="https://designers.hubspot.com/docs/features/multi-language-content#include-a-language-switcher" target="_blank" rel="noopener"&gt;https://designers.hubspot.com/docs/features/multi-language-content#include-a-language-switcher&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 16:12:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/342938#M16834</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2020-05-29T16:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Language switcher style</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/342941#M16835</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;! I really appreciate your time and help!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I used simple if and else condition and looks like works perfect for my website.&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% if content.language %}&lt;BR /&gt;{% if content.language.languageTag=='es' %}&lt;BR /&gt;Español&lt;BR /&gt;{% else %}&lt;BR /&gt;English&lt;BR /&gt;{% endif%}&lt;BR /&gt;{% endif%}&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 16:24:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-switcher-style/m-p/342941#M16835</guid>
      <dc:creator>mansigovani</dc:creator>
      <dc:date>2020-05-29T16:24:17Z</dc:date>
    </item>
  </channel>
</rss>

