<?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: srcset tag not being added in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690281#M30320</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/249540"&gt;@marth&lt;/a&gt;, that's definitely it. Good catch. I just compared an image in the same module that is used on a live page and a staging page and the live version has the srcset applied, the staging version doesn't.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 12:54:01 GMT</pubDate>
    <dc:creator>piersg</dc:creator>
    <dc:date>2022-09-07T12:54:01Z</dc:date>
    <item>
      <title>srcset tag not being added</title>
      <link>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/689684#M30287</link>
      <description>&lt;P&gt;I have recently created a custom slider module on hubspot. What I noticed is that when I am trying to preview a template that has that module, the srcset tag is present. But when I created a page using that template the srcset tag is no longer being added.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here's the hubl code of the image on the custom module I made.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set sizeAttrs = 'width="{{ item.image.width }}" height="{{ item.image.height }}"' %}
{% if item.image.size_type == 'auto_custom_max' %}
{% set sizeAttrs = 'width="{{ item.image.max_width }}" height="{{ item.image.max_height }}"' %}
{% endif %}
{% set loadingAttr = item.image.loading != 'disabled' ? 'loading="{{ item.image.loading }}"' : '' %}
&amp;lt;img src="{{ item.image.src }}" alt="{{ item.image.alt }}" {{ loadingAttr }} {{ sizeAttrs }}&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Here's a screenshot of the image element on the Design Manager Preview:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-06 at 6.49.26 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/74369i873457704505E845/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-09-06 at 6.49.26 PM.png" alt="Screen Shot 2022-09-06 at 6.49.26 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's a screenshot of the same image element when I created a page using that same template:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-06 at 6.49.51 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/74370i85705A1D28E4C5E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-09-06 at 6.49.51 PM.png" alt="Screen Shot 2022-09-06 at 6.49.51 PM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Any idea on why this is happening? Am I missing a code that triggers the srcset tag to work a published page?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 10:53:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/689684#M30287</guid>
      <dc:creator>marth</dc:creator>
      <dc:date>2022-09-06T10:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: srcset tag not being added</title>
      <link>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/689996#M30312</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/249540"&gt;@marth&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/363300"&gt;@Jnix284&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt;, do&amp;nbsp;you have any insight on the issue&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/249540"&gt;@marth&lt;/a&gt;&amp;nbsp;is describing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 20:40:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/689996#M30312</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-09-06T20:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: srcset tag not being added</title>
      <link>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690231#M30318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/249540"&gt;@marth&lt;/a&gt;&amp;nbsp;(thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;) I believe this just an issue with propagation. Changes in code are reflected immediately in preview (possibly because there's no cache of that?), whereas live the changes to longer to propagate. Give it a couple of minutes and hard refresh or check the page in incognito and you should see the srcset being applied.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 10:32:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690231#M30318</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2022-09-07T10:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: srcset tag not being added</title>
      <link>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690257#M30319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for the response. The page has been published since last tuesday and the srcset is still not appearing.&lt;BR /&gt;&lt;BR /&gt;But what we noticed is that the srcset shows up on websites we worked on that is currently live right now. The website we are currently having the issue on is not yet live and is using the [portal_id].hs-sites.com domain.&lt;BR /&gt;&lt;BR /&gt;Is it possible that the domain is causing the issue? We just want to know how the srcset is being added so we can make sure it is always being added.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 11:48:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690257#M30319</guid>
      <dc:creator>marth</dc:creator>
      <dc:date>2022-09-07T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: srcset tag not being added</title>
      <link>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690281#M30320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/249540"&gt;@marth&lt;/a&gt;, that's definitely it. Good catch. I just compared an image in the same module that is used on a live page and a staging page and the live version has the srcset applied, the staging version doesn't.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 12:54:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690281#M30320</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2022-09-07T12:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: srcset tag not being added</title>
      <link>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690640#M30329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I see. Thanks for clearing it up. Although it will be nice to see the srcset working on the staging page as well since the clients usually take a look at those before publishing it.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 01:27:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/srcset-tag-not-being-added/m-p/690640#M30329</guid>
      <dc:creator>marth</dc:creator>
      <dc:date>2022-09-08T01:27:13Z</dc:date>
    </item>
  </channel>
</rss>

