Adding body classes when a template is 'loaded' and 'scrolled'
SOLVE
Hi All,
I am very new to HubSpot and would like to ask if anyone knows here how to add classes on a body? Like for example, there would be a different display when a template is loaded and when the template is scrolled. My exact scenario is, I have this header where it has no background color when it is loaded, and background color will become black when it is scrolled.
Adding body classes when a template is 'loaded' and 'scrolled'
SOLVE
This can be added in the header part in a Custom HTML file with 'Edit Options' -> Inline Styling --> "display:none;" or you can make a js file and link it here using script source.
When you give display:none for the Custom HTML with script, it removes unncessary spacing.