<?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: Help with logo module snippet for email custom template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813685#M34812</link>
    <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 14:13:22 GMT</pubDate>
    <dc:creator>dannyalva</dc:creator>
    <dc:date>2023-06-29T14:13:22Z</dc:date>
    <item>
      <title>Help with logo module snippet for email custom template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813357#M34801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating a custom email module. I want to use the Logo module and I would like to modify the width in the parameters but I can't seem to figure it out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my attempt but doesn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{%&lt;/P&gt;&lt;P&gt;module "email_template_logo"&lt;/P&gt;&lt;P&gt;path="@hubspot/logo"&lt;/P&gt;&lt;P&gt;label="Logo"&lt;/P&gt;&lt;P&gt;image={&lt;/P&gt;&lt;P&gt;&amp;nbsp; "width" : 100&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;%}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can enlighten me with this issue. I don't want to create a new logo module every time a template uses a different size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:03:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813357#M34801</guid>
      <dc:creator>dannyalva</dc:creator>
      <dc:date>2023-06-28T23:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with logo module snippet for email custom template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813598#M34809</link>
      <description>&lt;P&gt;You need to change&amp;nbsp;&lt;EM&gt;image&amp;nbsp;&lt;/EM&gt;to&amp;nbsp;&lt;EM&gt;img&lt;/EM&gt;. However, this won't work unless you upload your own image. This module works by pulling in the logo (width, height, alt, and url included) from Settings &amp;gt; Pages &amp;gt; Branding and does not let you change those defaults unless you choose to override the inherited source using &lt;EM&gt;"override_inherited_src": true&amp;nbsp;&lt;/EM&gt;and add your own image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{%
  module "email_template_logo"
  path="@hubspot/logo"
  label="Logo"
  img={
    "override_inherited_src": true,
    "src": "yourimageurl.svg",
    "width" : 100
  }
%}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use the logo without overriding the source you would need to use CSS to change the width and height rather than the module settings.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 12:01:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813598#M34809</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-06-29T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with logo module snippet for email custom template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813659#M34810</link>
      <description>&lt;P&gt;Thank you Ayssa!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was just what I wanted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this work also for the Image for emails module?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{% module "image_email" path="@hubspot/image_email" %}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add a default src in the parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&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, 29 Jun 2023 13:37:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813659#M34810</guid>
      <dc:creator>dannyalva</dc:creator>
      <dc:date>2023-06-29T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with logo module snippet for email custom template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813668#M34811</link>
      <description>&lt;P&gt;Essentially the same, you just don't need the override_inherited_src for regular image modules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% module "image_email" path="@hubspot/image_email",
  img={
    "src": "yourimageurl.png",
    "width": 100,
    "height": 100,
    "alt": "alt text here"
  }
%}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 13:47:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813668#M34811</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-06-29T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with logo module snippet for email custom template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813685#M34812</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 14:13:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Help-with-logo-module-snippet-for-email-custom-template/m-p/813685#M34812</guid>
      <dc:creator>dannyalva</dc:creator>
      <dc:date>2023-06-29T14:13:22Z</dc:date>
    </item>
  </channel>
</rss>

