I am running in to a problem I have not experienced before when embedding custom code on to one of my pages.
One of our developers created a custom calculator for a project on Hubspot and provided an embed code so we could add it to our portal. Upon adding the code and publishing, it makes my nav-bar logout button huge and adds a background as well as changes the background colors, size, and font of various other parts of the page. I cannot seem to figure out why or how to stop it from doing this. I’ve used embed codes several times before but i’m running in to this problem with this one for the first time.
I’m not familiar with hubspot’s embedding options but quite commonly embedding is done as an IFRAME to isolate CSS changes to that part of the document.
In your case, you have the CSS directly in your main page, so it’s affecting your elements. That might be a normal setup, or it might not. The main impact seems to be that all buttons are styled.
You can see that [1] [2] is coming from [3] pico.min.css, part of the Hubspot integration.
You could try switching to an IFRAME-based embed, or you could avoid using a <button> element, either would likely mitigate this.
Probably unrelated, but also check out [4] and [5], two separate programming problems that will both affect the operation of your page.
Thank you very much. I tried using an iframe early on but for some reason it then would not display the embed at all. Which I’m guessing is Hubspots fault. I’ll keep trying to play with an iframe and see if I can get that to work.
More likely it just didn’t have a size. the content likely loaded but wasn’t visible without a width/height on the iframe. But that’s just a guess, typically the embed too will generate the embed iframe code with usable default settings.