<?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 I add custom css to a form in Hubspot? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/697234#M30541</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/448434"&gt;@CGattucio&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If your site is hosted on HubSpot, &lt;/SPAN&gt;&lt;SPAN&gt;You can add custom CSS to a form in the advance options of the page setting where the form is added; there is a section to add codes to the HTML.&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/website-pages/create-and-customize-pages#:~:text=To%20add%20code%20snippets%20to%20the%20head,a%20domain%20instead%2C%20access%20your%20website%20settings" target="_blank"&gt;&lt;SPAN&gt; Custom CSS applied in the page’s advance settings will apply to the form also; &lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;Check this article for further clarification: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/website-pages/create-and-customize-pages#:~:text=To%20add%20code%20snippets%20to%20the%20head,a%20domain%20instead%2C%20access%20your%20website%20settings" target="_blank"&gt;&lt;STRONG&gt;https://knowledge.hubspot.com/website-pages/create-and-customize-pages#:~:text=To%20add%20code%20snippets%20to%20the%20head,a%20domain%20instead%2C%20access%20your%20website%20settings&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;If the site is not hosted on HubSpot, you can do it through the form settings itself. Check this article for further clarification: &lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site#with-css-in-your-external-stylesheet-marketing-hub-professional-enterprise-or-legacy-marketing-hub-basic-only" target="_blank"&gt;&lt;STRONG&gt;https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site#with-css-in-your-external-stylesheet-marketing-hub-professional-enterprise-or-legacy-marketing-hub-basic-only&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 10:12:35 GMT</pubDate>
    <dc:creator>webdew</dc:creator>
    <dc:date>2022-09-23T10:12:35Z</dc:date>
    <item>
      <title>How do I add custom css to a form in Hubspot?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/696836#M30539</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wanted to see if using custom CSS in Hubspot forms is possible.&amp;nbsp;I found the following instructions for this:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/de/forms/how-do-i-style-my-embedded-form" target="_blank" rel="nofollow noopener noreferrer"&gt;https://knowledge.hubspot.com/de/forms/how-do-i-style-my-embedded-form.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have the form set to&amp;nbsp;"Set as raw HTML form" but don't understand how to apply custom CSS when the HTML from the HubSpot form does not render on the back-end of our server.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 15:56:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/696836#M30539</guid>
      <dc:creator>CGattucio</dc:creator>
      <dc:date>2022-09-22T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add custom css to a form in Hubspot?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/697234#M30541</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/448434"&gt;@CGattucio&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If your site is hosted on HubSpot, &lt;/SPAN&gt;&lt;SPAN&gt;You can add custom CSS to a form in the advance options of the page setting where the form is added; there is a section to add codes to the HTML.&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/website-pages/create-and-customize-pages#:~:text=To%20add%20code%20snippets%20to%20the%20head,a%20domain%20instead%2C%20access%20your%20website%20settings" target="_blank"&gt;&lt;SPAN&gt; Custom CSS applied in the page’s advance settings will apply to the form also; &lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;Check this article for further clarification: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/website-pages/create-and-customize-pages#:~:text=To%20add%20code%20snippets%20to%20the%20head,a%20domain%20instead%2C%20access%20your%20website%20settings" target="_blank"&gt;&lt;STRONG&gt;https://knowledge.hubspot.com/website-pages/create-and-customize-pages#:~:text=To%20add%20code%20snippets%20to%20the%20head,a%20domain%20instead%2C%20access%20your%20website%20settings&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;If the site is not hosted on HubSpot, you can do it through the form settings itself. Check this article for further clarification: &lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site#with-css-in-your-external-stylesheet-marketing-hub-professional-enterprise-or-legacy-marketing-hub-basic-only" target="_blank"&gt;&lt;STRONG&gt;https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site#with-css-in-your-external-stylesheet-marketing-hub-professional-enterprise-or-legacy-marketing-hub-basic-only&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 10:12:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/697234#M30541</guid>
      <dc:creator>webdew</dc:creator>
      <dc:date>2022-09-23T10:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add custom css to a form in Hubspot?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/698919#M30602</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/448434"&gt;@CGattucio&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like it's said in the KB - you can &lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="noopener"&gt;modify the embed code&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're embedding it - you're form get's the styling from the page you're embedding the form in. So if you want to change the styling you have to modify the CSS from the page, not HubSpot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I like/recommend to do is add&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;css:""&lt;/LI-CODE&gt;
&lt;P&gt;to the embed code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should look something like this:&lt;/P&gt;
&lt;P&gt;Default embed code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "6987863",
    formId: "8f88e5b6-98a4-4888-9543-86a5d46f024c",
    version: "V2_PRERELEASE"
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;modified:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "6987863",
    formId: "8f88e5b6-98a4-4888-9543-86a5d46f024c",
    version: "V2_PRERELEASE",
    css:""
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By doing so it will grab the default input styling provided by the page CSS you're embedding the form.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You will need to apply your button class to your primary CSS and maybe some other HubSpot classes to get it 100% right&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;another solution could be to add&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cssClass:"YOUR-FORM-CLASS"&lt;/LI-CODE&gt;
&lt;P&gt;to the embed code if you have a class added to all of your forms.&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;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 14:01:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/698919#M30602</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2022-09-27T14:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add custom css to a form in Hubspot?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/831017#M35342</link>
      <description>&lt;P&gt;I started hand coding years ago.&amp;nbsp; You can do some much more being able to hand code than use something pre-done like in HubSpot.&amp;nbsp; The CSS options within HubSpot are limited for controlling the layout of a form.&amp;nbsp; So I built a very simple opt-in form on my external site using HTML and styled it with CSS.&amp;nbsp; To get the form data to pass to HubSpot, I added the HubSpot tracking code to the header and it sees when someone fills out the form and captures the data.&amp;nbsp; That part is really cool.&amp;nbsp; Then, the action part of the form sends the user to the confirmation page after they submit the form.&amp;nbsp; I needed a field with a default value to pass through but not be shown on the form.&amp;nbsp; HubSpot doesn't collect data from hidden fields so I created a text field with a default value, I put the text field in a div, used css to set the div height to 0px and I now have a text field on the form that will pass the default data to HubSpot, but the field is hidden so the user doesn't see it.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 22:38:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/831017#M35342</guid>
      <dc:creator>MFenton</dc:creator>
      <dc:date>2023-08-07T22:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add custom css to a form in Hubspot?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/863620#M36261</link>
      <description>&lt;P&gt;So, from everything here, what i'm seeing is the only way to apply custom css is to use the embed code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be clear - there are no advanced options in the form builder that isn't embed related - to add css. Correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;things like the size of the fields (they're huge right?) and some background behavior would be nice to tweak.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lastly - is there a way to create a "work theme" that applies company colors and the logo and stuff when we access a template or create a template for say a landing page?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 15:05:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/863620#M36261</guid>
      <dc:creator>JohnInDallas</dc:creator>
      <dc:date>2023-10-12T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add custom css to a form in Hubspot?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/1039425#M40634</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/391656"&gt;@JohnInDallas&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you want to modify the look in feel in general you can do this via any CSS inside HubSpot that is getting loaded on every page - by default it should be either a single CSS file that is included in the main.css or the theme-overrides.css.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you like to override the default style on an external page, you can inspect the embeded form via the browsers developer tools and add all of your styling to the external page CSS. The only downside of this approach is that Hubspot still might override some styles. Therefore it's recommended to disable the default styling by modifing the embed-code as described above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit:&lt;/P&gt;
&lt;P&gt;If you're building things inside HubSpot - every good theme should come with form settings inside the theme settings. You can find the theme settings here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gear-icon (top right) -&amp;gt; Content -&amp;gt; Themes -&amp;gt; NAME OF YOUR THEME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It depends on how the theme was created but every developer/theme provider has the option to add form stylings(and almost every aspect of the theme) to the theme settings.&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;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 09:58:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-I-add-custom-css-to-a-form-in-Hubspot/m-p/1039425#M40634</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-09-11T09:58:58Z</dc:date>
    </item>
  </channel>
</rss>

