<?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 to Style Individual HubSpot Forms in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223020#M1916</link>
    <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/tim.sonin"&gt;@tim.sonin&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Happy to help.&lt;/P&gt;
&lt;P&gt;You can add custom CSS classes to specific embedded forms by defining the &lt;CODE&gt;cssClass&lt;/CODE&gt; attribute to the embed code, as outlined &lt;A href="https://developers.hubspot.com/docs/methods/forms/advanced_form_options"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you added &lt;CODE&gt;cssClass: 'ppc'&lt;/CODE&gt; to the desired forms' embed codes, you could select the labels in these forms with the &lt;A href="https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_selectors"&gt;descendant selector&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;.hs-form.ppc label {
     color: #FFFFFF;
     font-weight: 400;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Oct 2018 13:56:07 GMT</pubDate>
    <dc:creator>IsaacTakushi</dc:creator>
    <dc:date>2018-10-29T13:56:07Z</dc:date>
    <item>
      <title>How to Style Individual HubSpot Forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223019#M1915</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;My knowledge of CSS is fairly basic. I'm embedding HubSpot forms across my company's website and using the "unstyled from" setting. I've worked out how to use CSS to then customise the style of these forms to match our brand.&lt;/P&gt;
&lt;P&gt;But this is for all forms across the site. I need to be able to target specific types of form (PPC landing page forms for example) and change their colors. I've been told I might be able to do this with custom classes but can't find any documentation on this and HubSpot support pointed me here.&lt;/P&gt;
&lt;P&gt;Let's say, for example, I want to change the form label color for forms on my PPC landing pages..&lt;/P&gt;
&lt;P&gt;.hs-form label {&lt;BR /&gt;
color: &lt;SPAN class="hashtag"&gt;#FFFFFF&lt;/SPAN&gt;;&lt;BR /&gt;
font-weight: 400;&lt;BR /&gt;
}&lt;/P&gt;
&lt;P&gt;I guess this needs a custom class "ppc" but what do I need to put into my stylesheet and what do I need to change in the HubSpot form embed code?&lt;/P&gt;
&lt;P&gt;Any help would be much appreciated, Tim.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 14:14:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223019#M1915</guid>
      <dc:creator>tim-sonin</dc:creator>
      <dc:date>2018-10-26T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Style Individual HubSpot Forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223020#M1916</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/tim.sonin"&gt;@tim.sonin&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Happy to help.&lt;/P&gt;
&lt;P&gt;You can add custom CSS classes to specific embedded forms by defining the &lt;CODE&gt;cssClass&lt;/CODE&gt; attribute to the embed code, as outlined &lt;A href="https://developers.hubspot.com/docs/methods/forms/advanced_form_options"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you added &lt;CODE&gt;cssClass: 'ppc'&lt;/CODE&gt; to the desired forms' embed codes, you could select the labels in these forms with the &lt;A href="https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_selectors"&gt;descendant selector&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;.hs-form.ppc label {
     color: #FFFFFF;
     font-weight: 400;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 13:56:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223020#M1916</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-10-29T13:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Style Individual HubSpot Forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223021#M1917</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/isaac_takushi"&gt;@Isaac_Takushi&lt;/A&gt; unfortunately, that doesn't seem to be working.&lt;/P&gt;
&lt;P&gt;In my additional CSS I've added the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;.hs-form .ppc label {
color: #FFFFFF;
font-weight: 400;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;And I've added a PPC class to my form:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;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({
	portalId: '4464750',
	formId: '4a4928fd-35c2-44dd-a9fe-2e9234b96284',
	cssClass: 'ppc'
  });
&amp;lt;/script&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The result is this: &lt;A href="https://sonin.agency/app-development/surrey/" rel="nofollow noopener"&gt;https://sonin.agency/app-development/surrey/&lt;/A&gt; (scroll down to see form). The form labels are still white and look more 500 weight to me.&lt;/P&gt;
&lt;P&gt;Am I missing something obvious?&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Tim.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 13:26:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223021#M1917</guid>
      <dc:creator>tim-sonin</dc:creator>
      <dc:date>2018-10-31T13:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Style Individual HubSpot Forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223022#M1918</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/tim.sonin"&gt;@tim.sonin&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;The inspector shows your styles have applied correctly:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;A class="lightbox" href="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/d/d015aa9597d52c72b7b923d11c6ca40e1012d5d7.jpeg" data-download-href="/legacyfs/online/uploads/default/d015aa9597d52c72b7b923d11c6ca40e1012d5d7" title="Styles are applying.jpg"&gt;&lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/optimized/2X/d/d015aa9597d52c72b7b923d11c6ca40e1012d5d7_1_463x499.jpeg" alt="Styles%20are%20applying" width="463" height="499" srcset="https://discourse-cdn-sjc1.com/hubspot/uploads/default/optimized/2X/d/d015aa9597d52c72b7b923d11c6ca40e1012d5d7_1_463x499.jpeg, https://discourse-cdn-sjc1.com/hubspot/uploads/default/optimized/2X/d/d015aa9597d52c72b7b923d11c6ca40e1012d5d7_1_694x748.jpeg 1.5x, https://discourse-cdn-sjc1.com/hubspot/uploads/default/original/2X/d/d015aa9597d52c72b7b923d11c6ca40e1012d5d7.jpeg 2x" /&gt;&lt;DIV class="meta"&gt;
&lt;SPAN class="filename"&gt;Styles are applying.jpg&lt;/SPAN&gt;&lt;SPAN class="informations"&gt;809x873 134 KB&lt;/SPAN&gt;&lt;SPAN class="expand"&gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;What do you mean by the form labels are "still white"? You're setting them to white with &lt;CODE&gt;color: #FFFFFF&lt;/CODE&gt;. The &lt;CODE&gt;font-weight: 400&lt;/CODE&gt; is pulling through, but if it's still too thick, you could try &lt;CODE&gt;350&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 16:49:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223022#M1918</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-10-31T16:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Style Individual HubSpot Forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223023#M1919</link>
      <description>&lt;P&gt;Found the problem earlier, I added a space between .hs-form and the .ppc class in the CSS line.&lt;/P&gt;
&lt;P&gt;Thanks for your help, &lt;A class="mention" href="https://community.hubspot.com/u/isaac_takushi"&gt;@Isaac_Takushi&lt;/A&gt; &lt;IMG src="https://community.hubspot.com/legacyfs/online/emojis/apple/slight_smile.png?v=6" title=":slight_smile:" class="emoji" alt=":slight_smile:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 17:02:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-Style-Individual-HubSpot-Forms/m-p/223023#M1919</guid>
      <dc:creator>tim-sonin</dc:creator>
      <dc:date>2018-10-31T17:02:13Z</dc:date>
    </item>
  </channel>
</rss>

