Streaming live at 10am (PST)

Page Load Possibly Hides 'Embed Elements'

Need help figuring out why our Shopify ‘buy button’ dissapears when our site loads.

Asked Shopify and they say it’s possible css is hiding the element.

I’ve pasted the live site below, just click the ‘view details’ button on the ‘wedding cake’ item and you’ll see the ‘add to cart’ button is not there. I’ve left what Shopify stated below if that helps!


Sometimes the CSS on a third party website can interfere with the CSS rules of the Buy Button. For example, if a website chooses to set display: hidden; for the iframe element will effectively render a Buy Button invisible.

I have conducted some more testing on your Webflow site and believe the issue may be relating to the load order of some elements or scripts on the site.

Situation 1: If you refresh the page then quickly click ‘View Details’, the Buy Button loads.
Situation 2: If you refresh the page, wait for all elements and scripts to load, then click ‘View Details’ the Buy Button is hidden.

Here is a video demonstrating this, I run six tests: the first three being situation 1 the last three being situation 2.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

I did not experience the issue on current versions of MS Edge and Chrome (WIN) when I tested your shared site. I noticed console errors in your video. Did you look at them?

Hmm… Interesting.

I could not see console errors in video, it’s too small for me…

I’m unsure what to do because it disappears for me on Mac…

What do you think we should do?


The browser in the video is Chrome. Pull up dev tools and take a look at your console. I tested on a Mac with Safari and had no issues. Sometimes browser extensions create issues. Try incognito mode. At least share the exact configuration (browser, browser version, OS and version) you seem to have an issue with.

Yea, looks like a Chrome issue. Here’s my set up below.

Tried incognito, disabled all extensions… Same thing, so weird?! Usually Safari has the issues!

browser : Chrome
browser version : Version 84.0.4147.89 (Official Build) (64-bit)
OS : macOS Catalina
Version : 10.15.5 (19F2200)

Not seeing it. Tested same environment.

Clear your browser cache just in case. Don’t know what else to tell you .

See, the button is gone on the pop up!

When you click ‘view details’ there is supposed to be a button, like this:

The embed script is creating an iframe that has a inline style attribute of height:0. That is why it is not visible. So that is not a CSS collision. Not sure why this occurs. I would test a copy of this page without the other buttons and scripts loaded to see if this happens due to an implementation in the modal to isolate.

Ok, let me try a white page with the button to pop open this modal with button only and share it with you here. Thank you Jeff!!


Webflow jumped in to help us out!

Thank you for your assistance, really helped us along the way!!

Thank you!!


Webflow Solution :

Thanks for reaching out on the Webflow community forum for help with the custom code integration with Shopify.

Looks like the issue might be that Shopify script is calculating the size for the iFrame based on the element being on the page however it is hidden because you have it in a modal pop-up, so there is no initial height to calculate.

Perhaps try some custom CSS to force a fixed height on the iFrame to see if that resolves the issue -

Maybe something like:

.shopify-buy-frame iframe { height:75px !important }

Be sure to save the custom code, re-publish and then check in an Incognito browser window so that the latest style is applied.