<?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: Exclude domain stylesheet in html template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/452573#M23829</link>
    <description>&lt;P&gt;I called support my self, they weren't able to help me with the Hubl, though I'm pretty sure there is a solution. They did help me track the stylesheet though and it wasn't where I assumed it was so I can remove it without effecting the whole domain now anyway.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 13:35:25 GMT</pubDate>
    <dc:creator>Jsum</dc:creator>
    <dc:date>2021-06-29T13:35:25Z</dc:date>
    <item>
      <title>Exclude domain stylesheet in html template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/451842#M23800</link>
      <description>&lt;P&gt;Is there a tag/function/filter that can exclude the domain stylesheet in an HTML template?&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 21:22:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/451842#M23800</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2021-06-27T21:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude domain stylesheet in html template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/451927#M23801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;, the documentation explains how to remove it from selected pages:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/design-manager/create-edit-and-attach-css-files-to-style-your-site#attach-or-remove-stylesheets-on-a-page-level" target="_blank"&gt;https://knowledge.hubspot.com/design-manager/create-edit-and-attach-css-files-to-style-your-site#attach-or-remove-stylesheets-on-a-page-level&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But if you need to do it in an HTML level, maybe the best would be to load your CSS directly into the code. By doing this, you could add an IF statement to load the style everywhere except in the pages you don't want to load it. You can do that by checking the URL for example (see:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/CMS-Development/Get-current-page-URL-slug/td-p/256422" target="_blank"&gt;https://community.hubspot.com/t5/CMS-Development/Get-current-page-URL-slug/td-p/256422&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 06:25:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/451927#M23801</guid>
      <dc:creator>albertsg</dc:creator>
      <dc:date>2021-06-28T06:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude domain stylesheet in html template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/451999#M23804</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;{{ require_css(get_asset_url(\&amp;quot;../../css/main.css\&amp;quot;)) }} Add your style css somthing like this&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:5053,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;6&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;7&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;8&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;10&amp;quot;:2,&amp;quot;11&amp;quot;:4,&amp;quot;12&amp;quot;:0,&amp;quot;15&amp;quot;:&amp;quot;Arial&amp;quot;}"&gt; Add your style css somthing like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;{{ require_css(get_asset_url(\&amp;quot;../../css/main.css\&amp;quot;)) }} Add your style css somthing like this&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:5053,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;6&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;7&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;8&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;10&amp;quot;:2,&amp;quot;11&amp;quot;:4,&amp;quot;12&amp;quot;:0,&amp;quot;15&amp;quot;:&amp;quot;Arial&amp;quot;}"&gt;{{ require_css(get_asset_url("../../css/main.css")) }}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 09:47:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/451999#M23804</guid>
      <dc:creator>webdew</dc:creator>
      <dc:date>2021-06-28T09:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude domain stylesheet in html template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/452573#M23829</link>
      <description>&lt;P&gt;I called support my self, they weren't able to help me with the Hubl, though I'm pretty sure there is a solution. They did help me track the stylesheet though and it wasn't where I assumed it was so I can remove it without effecting the whole domain now anyway.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 13:35:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/452573#M23829</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2021-06-29T13:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude domain stylesheet in html template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/460509#M24070</link>
      <description>&lt;P&gt;I wouldn't call that a solution, I'm looking for the same function, I cloned a template to html but the template has the exlude domain stylesheets, this doesn't seem to be an option in HTML stylesheets. and for me the CSS is used in 67 live pages across the domain so removing it is not an option. best I can think is to just do a replace on the&amp;nbsp;{{ required_head_tags }} tag but probably not the nicest solution&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 09:18:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/460509#M24070</guid>
      <dc:creator>matt_scott</dc:creator>
      <dc:date>2021-07-16T09:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude domain stylesheet in html template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/465039#M24169</link>
      <description>&lt;P&gt;Just found another solution, if you include the stylesheets in the header html section rather than the stylesheets section of the site settings, you can use hubl in the html section&lt;BR /&gt;&lt;BR /&gt;with that hubl you can write an if statement to only render for a specific template or everything but a specific template e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if !current_path is string_containing 'template-excludes-site-css.html' %}
&amp;lt;link stylesheets here&amp;gt;
{% endif %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;because your using the string_containing operator you can be specific to the full template path or part of the path (I just use my new theme path so every template will ignore those stylesheets) or even just a snippet you add to your template name e.g. templatename-nocss.html you could just match 'nocss'&lt;BR /&gt;&lt;BR /&gt;edit: updated "is contains", to "is string_containing" as I'm not sure what the contains operator actually does (not in the docs)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 08:30:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/465039#M24169</guid>
      <dc:creator>matt_scott</dc:creator>
      <dc:date>2021-08-06T08:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude domain stylesheet in html template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/471761#M24338</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/64119"&gt;@matt_scott&lt;/a&gt;&amp;nbsp;nice one. this is a cool trick&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 17:57:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/471761#M24338</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2021-08-03T17:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude domain stylesheet in html template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/552303#M26732</link>
      <description>&lt;P&gt;I would have thought this was what "enableDomainStylesheets: false" was for but that doesn't seem to work.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 21:10:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Exclude-domain-stylesheet-in-html-template/m-p/552303#M26732</guid>
      <dc:creator>BGrennan</dc:creator>
      <dc:date>2022-01-07T21:10:20Z</dc:date>
    </item>
  </channel>
</rss>

