Trying to add iframe to collection page but will not resize on mobile

New Member
1 0 0

First post here .......

I am using a page on an existing Shopify site to test an iFrame before I use it on another yet to be created Shopify site ......

I followed the instructions below from my vendor by uploading iFrameResizer.min.js file as an asset and have referenced this js file before the head tag in the theme.liquid file 

Added html code to the collections page below

But I am unable to get it to resize. Can you help  ?



3. Upload the iFrameResizer.js script to your website folder

 Add the file iFrameResizer.js that you downloaded in step 3 to your scripts folder (or any location you prefer to store your javascript files). 

4. Insert the script references to your webpage

 Add the below html to the scripts section of your web page. Now update the src attribute so that it points to the location where you have just placed the iFrameResizer.js file.

    <script type="text/javascript" src="iFrameResizer.min.js"></script>
    <script type="text/javascript">
        window.onload = function() {
                log                     : false,
                enablePublicMethods     : true, 
                enableInPageLinks       : true

5. Add the iFrame to your website

Add the below html to page where you want to display Your Web Shop. Update the src attribute to point to your own webshop url. 
<iframe src="" frameborder="0"  width="100%" height="1800px"scrolling="yes"></iframe>