<?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 can I add a custom class to a dnd_column? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699142#M30617</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've successfully added my own class to a "dnd_section" template with the following code:&lt;/P&gt;&lt;PRE&gt;{% dnd_section class="thisClassWorks" %}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% dnd_column class="thisClassDoesNotWork" %}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% end_dnd_column %}&lt;BR /&gt;{% end_dnd_section %}&lt;/PRE&gt;&lt;P&gt;However, I am unable to add a custom class to the child "dnd_column". The HubL code above produces the following output:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="row-fluid-wrapper row-depth-1 row-number-1 dnd-section thisClassWorks"&amp;gt;&lt;BR /&gt;&amp;lt;div class="row-fluid "&amp;gt;&lt;BR /&gt;&amp;lt;div class="span12 widget-span widget-type-cell dnd-column" style="" data-widget-type="cell" data-x="0" data-w="12"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&amp;lt;!--end widget-span --&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&amp;lt;!--end row--&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&amp;lt;!--end row-wrapper --&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;My custom class "thisClassDoesNotWork" doesn't show up anywhere in the column. How can I add a custom class to a dnd_column in my section template?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 21:30:44 GMT</pubDate>
    <dc:creator>marquizzo</dc:creator>
    <dc:date>2022-09-27T21:30:44Z</dc:date>
    <item>
      <title>How can I add a custom class to a dnd_column?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699142#M30617</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've successfully added my own class to a "dnd_section" template with the following code:&lt;/P&gt;&lt;PRE&gt;{% dnd_section class="thisClassWorks" %}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% dnd_column class="thisClassDoesNotWork" %}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% end_dnd_column %}&lt;BR /&gt;{% end_dnd_section %}&lt;/PRE&gt;&lt;P&gt;However, I am unable to add a custom class to the child "dnd_column". The HubL code above produces the following output:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="row-fluid-wrapper row-depth-1 row-number-1 dnd-section thisClassWorks"&amp;gt;&lt;BR /&gt;&amp;lt;div class="row-fluid "&amp;gt;&lt;BR /&gt;&amp;lt;div class="span12 widget-span widget-type-cell dnd-column" style="" data-widget-type="cell" data-x="0" data-w="12"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&amp;lt;!--end widget-span --&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&amp;lt;!--end row--&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&amp;lt;!--end row-wrapper --&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;My custom class "thisClassDoesNotWork" doesn't show up anywhere in the column. How can I add a custom class to a dnd_column in my section template?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 21:30:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699142#M30617</guid>
      <dc:creator>marquizzo</dc:creator>
      <dc:date>2022-09-27T21:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a custom class to a dnd_column?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699207#M30619</link>
      <description>&lt;P&gt;Yup, you can't add a class to a dnd_column. But you can use the custom class you added to the parent section to target it.&lt;/P&gt;&lt;P&gt;.thisClassWorks .dnd-column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 02:18:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699207#M30619</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2022-09-28T02:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a custom class to a dnd_column?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699523#M30625</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. However, this solution wouldn't work if the developer wants to have more than one column, or if the user adds more columns in the page editor.&lt;BR /&gt;&lt;BR /&gt;Is there a place where we could post feature requests, &lt;A href="https://github.com/vuejs/vue/issues" target="_blank" rel="noopener"&gt;like with Github&lt;/A&gt;? This seems like a very essential HTML functionality that Hubspot is missing.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 17:04:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699523#M30625</guid>
      <dc:creator>marquizzo</dc:creator>
      <dc:date>2022-09-28T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a custom class to a dnd_column?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699528#M30626</link>
      <description>&lt;P&gt;In the developer case you could still target with something like nth-child.&lt;BR /&gt;But yeah the page editor scenario may be insurmountable. But the page editor would still cause issue evne if you could add a class to a column (.e.g. what if the user deletes the column, moves it, puts a column before it etc.)&lt;BR /&gt;&lt;BR /&gt;The ideas forum can be found &lt;A href="https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas" target="_blank" rel="noopener"&gt;here&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="profile2022a" style="width: 100px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/71500iE96AB1F9E9E277B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="profile2022a" alt="profile2022a" /&gt;&lt;/span&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Barry Grennan&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Freelance HubSpot CMS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.seoanseo.ca?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Website&lt;/A&gt; | &lt;A href="https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity" target="_blank" rel="nofollow noopener noreferrer"&gt;Contact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 17:10:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/699528#M30626</guid>
      <dc:creator>BarryGrennan</dc:creator>
      <dc:date>2022-09-28T17:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add a custom class to a dnd_column?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/978420#M39124</link>
      <description>&lt;P&gt;+1 on that. I'd also like to have CMS options for sections at the least so content editors can apply classes by using a dropdown. I have this functioning in modules just fine but I want to be able to add borders, custom background gradients, and box shadows, which arent available in the settings even if I wanted to have them preset. I don't want content editors to have to do CSS, that's my job!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 19:01:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-can-I-add-a-custom-class-to-a-dnd-column/m-p/978420#M39124</guid>
      <dc:creator>EdCupaioli</dc:creator>
      <dc:date>2024-05-17T19:01:33Z</dc:date>
    </item>
  </channel>
</rss>

