<?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 How to embed custom javascript in HubSpot CMS in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566046#M27101</link>
    <description>&lt;P&gt;I''ve created a new page using HubSpot CMS but the spacing looks different depending on desktop sizes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I contacted HubSpot Support Team and the agent told me that I'll need to work with a developer to embed custom Javascript to address this spacing issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone know how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 10:22:00 GMT</pubDate>
    <dc:creator>Janice_CC</dc:creator>
    <dc:date>2022-01-31T10:22:00Z</dc:date>
    <item>
      <title>How to embed custom javascript in HubSpot CMS</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566046#M27101</link>
      <description>&lt;P&gt;I''ve created a new page using HubSpot CMS but the spacing looks different depending on desktop sizes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I contacted HubSpot Support Team and the agent told me that I'll need to work with a developer to embed custom Javascript to address this spacing issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone know how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 10:22:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566046#M27101</guid>
      <dc:creator>Janice_CC</dc:creator>
      <dc:date>2022-01-31T10:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed custom javascript in HubSpot CMS</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566101#M27105</link>
      <description>&lt;P&gt;Spacing is a CSS issue, not a JS issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a few ways to add CSS. If you want the styles applied across your whole site, you should write your styles in a stylesheet (file ending .css) and add it to your page template(s) or in your settings (Settings &amp;gt; Website &amp;gt; Pages &amp;gt; CSS &amp;amp; Stylesheets).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want your styles applied to one page only and you have a css file, you can add it to a page in the settings or, if you don't have a stylesheet, you can write the css in the advanced settings of a page in header or footer HTML like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;style&amp;gt;

/* styles here */

&amp;lt;/style&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 12:21:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566101#M27105</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2022-01-31T12:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed custom javascript in HubSpot CMS</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566825#M27124</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/309398"&gt;@Janice_CC&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can add javascript inside the module.js or add css inside module.css. Please share the link of the page where you are getting issues.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;BR /&gt;Thanks and Regards.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 08:35:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566825#M27124</guid>
      <dc:creator>webdew</dc:creator>
      <dc:date>2022-02-01T08:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed custom javascript in HubSpot CMS</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566843#M27126</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write the styles that only applies to a section on the page?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the link to page:&amp;nbsp;&lt;A href="https://www.carterconsulting.co.uk/hubspot-implementation-partner?hsLang=en" target="_blank"&gt;https://www.carterconsulting.co.uk/hubspot-implementation-partner?hsLang=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The spacing issue occurs in HubSpot services section depending on desktop sizes (please see screenshots from two different desktops).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="06914_0-1643707220126.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/58470i2CEBD13ADA3282CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="06914_0-1643707220126.png" alt="06914_0-1643707220126.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="06914_1-1643707257329.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/58471i9AE1CA56F3E96043/image-size/medium?v=v2&amp;amp;px=400" role="button" title="06914_1-1643707257329.png" alt="06914_1-1643707257329.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 09:21:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566843#M27126</guid>
      <dc:creator>Janice_CC</dc:creator>
      <dc:date>2022-02-01T09:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed custom javascript in HubSpot CMS</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566896#M27129</link>
      <description>&lt;P&gt;I assume you want that copy left-aligned so it's inline with the heading? Whoever wrote the styling for this has written the left padding with "!important" on the id, which is difficult to override with one CSS rule, the easiest method is probably doing it with left positioning. Copy paste this into the header HTML section in the advanced settings of the page.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;style&amp;gt;
@media (min-width: 768px) {
  .marketing-automation-row1 .span6 .widget-type-rich_text {
    position: relative;
    left: -14px;
    
  }
}
&amp;lt;/stlye&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 10:45:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-embed-custom-javascript-in-HubSpot-CMS/m-p/566896#M27129</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2022-02-01T10:45:58Z</dc:date>
    </item>
  </channel>
</rss>

