<?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: How do you use other logos in a brand kit? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/959101#M38648</link>
    <description>&lt;P&gt;This is a great question&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/418610"&gt;@kyleffotf&lt;/a&gt;, I couldn't find any documentation to call the other logos from a brand kit - I'm wondering if this is a planned capability or just undocumented.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;any idea if you can allow additional logos from a brand kit to be selected from a module dropdown? So if you have multiple logos in the brand kit, giving an option to choose one instead of only using the first/default?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 01:41:29 GMT</pubDate>
    <dc:creator>Jnix284</dc:creator>
    <dc:date>2024-04-12T01:41:29Z</dc:date>
    <item>
      <title>How do you use other logos in a brand kit?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/958897#M38644</link>
      <description>&lt;P&gt;How do I use the other logos in my brand kit settings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have 3 logos in our brand kit, a coloured one, a white one, and black one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the logo module, it only displays the default logo, but I want to be able to switch between the 3 depending on my landing page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried creating a custom header module, with a Choice field that lets me switch between the different header themes, but there is no documentation or examples on how to reference the other logos in my brand kit. It seems I can only accomplish this using an Image module, but then what is the purpose of having an logo module, or multiple logos in the brand kit?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 19:26:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/958897#M38644</guid>
      <dc:creator>kyleffotf</dc:creator>
      <dc:date>2024-04-11T19:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use other logos in a brand kit?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/959101#M38648</link>
      <description>&lt;P&gt;This is a great question&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/418610"&gt;@kyleffotf&lt;/a&gt;, I couldn't find any documentation to call the other logos from a brand kit - I'm wondering if this is a planned capability or just undocumented.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;any idea if you can allow additional logos from a brand kit to be selected from a module dropdown? So if you have multiple logos in the brand kit, giving an option to choose one instead of only using the first/default?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 01:41:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/959101#M38648</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2024-04-12T01:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use other logos in a brand kit?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/959208#M38649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/418610"&gt;@kyleffotf&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you're both right - it is not that well documented. There's only this &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields/branding-settings-inheritance#logos" target="_blank" rel="noopener"&gt;documentation about brand-kit logos&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You had the right idea about creating a custom module with a choice field. It's a bit "thinking around the corner" since you have to write the code a bit different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also: using &lt;EM&gt;brand_settings.logos[0]&lt;/EM&gt;&amp;nbsp;is the same as &lt;EM&gt;brand_settings.primaryLogo&lt;/EM&gt; and therefore will output the primary logo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nontheless - here's a working code that will work in a custom module&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;module.html:&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if module.custom_logo == "primary" %}
    {% set custom_logo_info = brand_settings.primaryLogo %}
{% elif module.custom_logo == "secondary" %}
    {% set custom_logo_info = brand_settings.logos[1] %}
{% endif %}

{# just logo #}
&amp;lt;img src="{{ custom_logo_info.src }}" alt="{{ custom_logo_info.alt }}" height="{{ custom_logo_info.height }}" width="{{ custom_logo_info.width }}" style="height:{{ custom_logo_info.height }};width:{{ custom_logo_info.width }}"&amp;gt;


{# logo with automatic link #}
{% if custom_logo_info.link %}
    &amp;lt;a href="{{ custom_logo_info.link }}"&amp;gt;
		&amp;lt;img src="{{ custom_logo_info.src }}" alt="{{ custom_logo_info.alt }}" height="{{ custom_logo_info.height }}" width="{{ custom_logo_info.width }}" style="height:{{ custom_logo_info.height }};width:{{ custom_logo_info.width }}"&amp;gt;
    &amp;lt;/a&amp;gt;
{% endif %}

{# logo with manual link #}
{% if module.link_logo %}
    &amp;lt;a href="{{ custom_logo_info.link }}"&amp;gt;
		&amp;lt;img src="{{ custom_logo_info.src }}" alt="{{ custom_logo_info.alt }}" height="{{ custom_logo_info.height }}" width="{{ custom_logo_info.width }}" style="height:{{ custom_logo_info.height }};width:{{ custom_logo_info.width }}"&amp;gt;
    &amp;lt;/a&amp;gt;
{% endif %}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;fields.json (if you're working with CLI):&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[
 {
  "choices": [
   [
    "primary",
    "Primary"
   ],
   [
    "secondary",
    "Secondary"
   ]
  ],
  "display": "radio",
  "display_width": null,
  "id": "7120ae94-964c-4db3-59ab-935a41a66a2f",
  "label": "Custom logo",
  "locked": false,
  "multiple": false,
  "name": "custom_logo",
  "preset": null,
  "reordering_enabled": true,
  "required": false,
  "type": "choice"
 },
 {
  "type": "boolean",
  "id": "936778fc-fbd1-7ee7-d170-5062ee637cf2",
  "default": false,
  "display": "toggle",
  "label": "Link logo",
  "name": "link_logo"
 }
]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Screenshots of the module settings (if you're working with the design-manager):&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2024-04-12 um 09.47.02.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/115132iF053DB259C51C8E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2024-04-12 um 09.47.02.png" alt="Bildschirmfoto 2024-04-12 um 09.47.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2024-04-12 um 09.47.33.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/115133i5FE7D4E30B1318D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2024-04-12 um 09.47.33.png" alt="Bildschirmfoto 2024-04-12 um 09.47.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 07:53:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/959208#M38649</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-04-12T07:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use other logos in a brand kit?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/959331#M38650</link>
      <description>&lt;P&gt;Amazing, thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;it's great to know that brand_settings.logos[1] can be incrementally increased to leverage additional logos in the brand kit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/418610"&gt;@kyleffotf&lt;/a&gt;&amp;nbsp;since you have three logos, you'll need to also include brand_settings.logos[2] accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 11:54:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-you-use-other-logos-in-a-brand-kit/m-p/959331#M38650</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2024-04-12T11:54:34Z</dc:date>
    </item>
  </channel>
</rss>

