I'm new to HubSpot COS. Currently developing a page using Bootstrap 4. However, the styling from layout.min.css file is conflicting with my Bootstrap 4 styling.
Is there a way to disable layout.min.css so that it doesn't get loaded on page?
This will find all the <link> hrefs that end with 'layout.min.css' and remove them.
Edit:
Having said that, I would suggest using pure JS to remove the stylesheet, otherwise you'll have to wait for jQuery to be loaded in first. Do this instead:
Jul 31, 20181:04 AM - edited Jul 31, 20181:06 AM
Contributor | Partner
How to disable layout.min.css file
Hi zeshanshani,
Unfortunately there is no way to disable this file, its forced on you for all drag-and-drop templates. It does make life hard since you have to work around the very limited grid system.
You can override the styles it uses with your own. I saw this article a few months ago that gives an example - currently the formatting of the code examples are a bit broken though.
@MichaelJ, >> It does make life hard since you have to work around the very limited grid system.
Hmm, if you guys know it makes the life hard, why don't you make it optional? It's fine to force it in the backend but on the front-end, I can't see any reason to have it a must.
Though I was already able to overwrite the styles, this worked so far:
Jan 13, 20193:46 AM - edited Jan 13, 20193:47 AM
Member
How to disable layout.min.css file
I had to work around this issue too.
How I wish we can define our grid system and still has access to the drag and drop backend.
Also, the grid system can easily be modified by allowing devs to modify what Module Group does. Right now, it auto adds wrapping divs. How hard is it to allow a parameter so we can decide on what wrapping element we want.