La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
Go to that page and select Ctrl+S and you can save the file as a Cascading Style Sheet Document.
Also, how do I put this code on a page without any other code on the page? Any page I create contains all the code from our template and additional header code.
How to create a page that can be saved as a CSS file
@rickbyrd since it isn't a file published on your website directly, you would need to include that file path with the directory information for your files in design tools.
Looking at the dev console, you have a CSS file here where you can copy the URL info from:
You'll have to figure out if this string changes based on whether it is in the subfolder or not, I've never tested this and I also have never attempted to share a direct link to a CSS file as you are, so it will take a little testing to narrow down the URL you need.
If my reply answered your question please mark it as a solution to make it easier for others to find.
Unfortunately, that will not solve the problem. Putting the CSS code in the header or footer will not change the fact that I need to be able to save the page as a CSS file.
If you go to the example URL I gave and click CRTL + S you can save the page as a CSS document -
That is part of what I need to do. The other part is having a page with only the code, with nothing else on the page. I can not do that because our website uses a theme and other script codes for tracking purposes.
You can add custom code snippets to specific pages by going to that page in HubSpot, click edit page, the go to the settings tab and expand the "advanced options". You will see this:
You can then add the additional code either in the header or footer.
I hope that helps.
Frank
Found my comment helpful? Great! Please mark it as a solution to help other community users.