Removing title and container when adding an iframe to select pages?

Hello! Thank you for your help.

My company creates Shopify pages and embeds iframes on them to power marketing technology.

Our current process seems like a work around. Do any of you know a better way to go about it?

First we create the page under “Pages” and add a small div like this to pull in the widget:

Then we’ll have to inspect the page and find the selectors to remove the container and let the iframe takeup the whole page and remove the page title like this>

As I understand it most companies do this by creating a template. We do it all within the “html” section of the page we created. Any suggestion to get away from inspecting each page?

Hello @tgump

Could you please share your store URL or the page link ( with a pass if your store password is enabled ). I think I can give you the right solution.

Thanks! Here’s the page without the CSS added https://lilytreeccc.myshopify.com/pages/refer We typically just add it under the div here> . The Div pulls in the Iframe but it’s only in a small square until we add the CSS to make it …“full bleed” if you will.

PW: Friend547

Hello @tgump

It’s GemPages support team and glad to support you today.

Put this css below the line of code:


Result:

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

1 Like

Thanks for working on this with me! That would fix it for this page but we’re looking for a solution that will work with multiple stores. I’m not sure if I need to create a theme or what but I work with many different Shopify stores. Here’s another example https://nutritionkitchenhk.com/pages/referral-advocate-landing-page . On this page the script takes out the header but doesn’t let the iframe stretch out.

I’m hoping to find either a one size fits all CSS or find a way to create a standard shopify theme all our clients can use to not have to customize each client’s CSS.

@tgump

Your pages don’t have the same structure
for this page you should use the following css code:


Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

Thanks again, GemPages. That’s the main issue though, it’s different for each site depending on their structure. I’m hoping to find a one size fits all solution. I’m not sure if that’s with CSS here or creating a theme template.

This was perfect! I’d like to donate money to you for your help. You truly made our iFrame integration look so much more better.