<?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 Selector: How to hide current language? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444705#M23532</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;&amp;nbsp; how does your team handle this?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 15:31:41 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2021-06-07T15:31:41Z</dc:date>
    <item>
      <title>Language Selector: How to hide current language?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444609#M23524</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the built in hubspot language selector.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My site is available in two languages. I'm wondering if anyone knows how to hide the current language from the menu?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 &lt;STRONG&gt;only&lt;/STRONG&gt; see Espanol, as the english is already present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to go into the module code but there was not much there and the documentation does not discuss customisation options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 12:33:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444609#M23524</guid>
      <dc:creator>SD_dev</dc:creator>
      <dc:date>2021-06-07T12:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Language Selector: How to hide current language?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444705#M23532</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;&amp;nbsp; how does your team handle this?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 15:31:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444705#M23532</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-06-07T15:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Language Selector: How to hide current language?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444929#M23538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/155239"&gt;@SD_dev&lt;/a&gt;, this isn't possible with the default language switcher module. You'll have to create your own. The logic for this is essentially&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if content.translated_content|length %}
  {% for item in content.translated_content|sort(False, False, 'language') %}
    {{ item.language }}
  {% endif %}
{% endfor %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a long thread about custom language switchers here (not just the original question and answer, a few people asked related questions in that thread that I also responded to)&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/CMS-Development/Custom-language-switcher-Language-switching/td-p/269251" target="_blank"&gt;https://community.hubspot.com/t5/CMS-Development/Custom-language-switcher-Language-switching/td-p/269251&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 08:19:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444929#M23538</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2021-06-08T08:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Language Selector: How to hide current language?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444966#M23541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/155239"&gt;@SD_dev&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;You need to add this js https://codepen.io/Daanist/pen/JZRXmN&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:1053629,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;6&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;7&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;8&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;10&amp;quot;:2,&amp;quot;11&amp;quot;:4,&amp;quot;12&amp;quot;:0,&amp;quot;15&amp;quot;:&amp;quot;Arial&amp;quot;,&amp;quot;23&amp;quot;:1}" data-sheets-textstyleruns="" data-sheets-hyperlinkruns=""&gt;You need to add this js &lt;A class="in-cell-link" href="https://codepen.io/Daanist/pen/JZRXmN" target="_blank" rel="noopener"&gt;https://codepen.io/Daanist/pen/JZRXmN&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:46:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/444966#M23541</guid>
      <dc:creator>webdew</dc:creator>
      <dc:date>2021-06-08T09:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Language Selector: How to hide current language?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/445357#M23551</link>
      <description>&lt;P&gt;Got it thank you! I'll try that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;.header__language-switcher .lang_list_class li:first-child {
display: none
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then fix your styling so that the hover, and ::before triangle element looks better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will look into building a custom module as a cleaner solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:33:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Language-Selector-How-to-hide-current-language/m-p/445357#M23551</guid>
      <dc:creator>SD_dev</dc:creator>
      <dc:date>2021-06-09T08:33:55Z</dc:date>
    </item>
  </channel>
</rss>

