<?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: Making a Smart CTA button display based on page language rather than user's browser language in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Making-a-Smart-CTA-button-display-based-on-page-language-rather/m-p/597073#M7245</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/85621"&gt;@LizBW&lt;/a&gt;&amp;nbsp;, I would like to invite some of our top experts to share their ideas&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/123775"&gt;@danmoyle&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/16537"&gt;@dannio&lt;/a&gt;&amp;nbsp;any recommendations to&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/85621"&gt;@LizBW&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Pam&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 21:23:46 GMT</pubDate>
    <dc:creator>PamCotton</dc:creator>
    <dc:date>2022-03-17T21:23:46Z</dc:date>
    <item>
      <title>Making a Smart CTA button display based on page language rather than user's browser language</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Making-a-Smart-CTA-button-display-based-on-page-language-rather/m-p/596086#M7242</link>
      <description>&lt;P&gt;Our website includes a header with CTA buttons for users to "Log In" or "Sign Up." Both of these buttons are Smart CTAs, with the labels translated into all of our site languages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default HubSpot will show the language variations based on the user's browser language setting, but we would like to have it display based on the Page Language setting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been told by Support that it's possible to custom code a module to do this, but that's all they offered and we don't have any devs on our team. Has anyone else dealt with this and have advice to offer?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 18:02:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Making-a-Smart-CTA-button-display-based-on-page-language-rather/m-p/596086#M7242</guid>
      <dc:creator>LizBW</dc:creator>
      <dc:date>2022-03-16T18:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Making a Smart CTA button display based on page language rather than user's browser language</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Making-a-Smart-CTA-button-display-based-on-page-language-rather/m-p/597073#M7245</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/85621"&gt;@LizBW&lt;/a&gt;&amp;nbsp;, I would like to invite some of our top experts to share their ideas&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/123775"&gt;@danmoyle&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/16537"&gt;@dannio&lt;/a&gt;&amp;nbsp;any recommendations to&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/85621"&gt;@LizBW&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Pam&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 21:23:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Making-a-Smart-CTA-button-display-based-on-page-language-rather/m-p/597073#M7245</guid>
      <dc:creator>PamCotton</dc:creator>
      <dc:date>2022-03-17T21:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Making a Smart CTA button display based on page language rather than user's browser language</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/Making-a-Smart-CTA-button-display-based-on-page-language-rather/m-p/597166#M7246</link>
      <description>&lt;P&gt;You can obtain the current page language tag via:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;content.language.languageTag&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will output something like 'en', 'en-us', 'de', 'fr', etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make a conditional for it, you simply need to put it in an if statement like so:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if content.language.languageTag == 'en' %}
   {% cta guid="{{ module.en_cta_field }}" %}
{% elif content.language.languageTag == 'fr' %}
   {% cta guid="{{ module.fr_cta_field }}" %}
{% endif %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in your module, you just need to create the corresponding CTAs for each language and make conditionals for it to show on the right pages.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 01:29:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/Making-a-Smart-CTA-button-display-based-on-page-language-rather/m-p/597166#M7246</guid>
      <dc:creator>dannio</dc:creator>
      <dc:date>2022-03-18T01:29:54Z</dc:date>
    </item>
  </channel>
</rss>

