I'm currently trying to display a list of Instagram embeds, but I'd like users to be able to visit a display page before being directed to the actual Instagram embed page.
My idea is to enclose each Instagram embed within a hyperlink for this purpose.
After researching, I found an example that attempted something similar with iframes on Stack Overflow. You can view it here.
Here's an example of how I tried to achieve this:
<a href="http://tumblr.com" target="_blank" class="linkwrap">
<div class="blocker"></div>
<iframe width="420" height="315" src="https://www.youtube.com/embed/5Xbs60BMeRU" frameborder="0" allowfullscreen></iframe>
</a>
Although this code worked with iframes, it didn't quite work as expected when attempting the same with Instagram embeds.
Below is an example of my attempt using an Instagram embed:
<a href="http://go.com/somewhere" target="_blank" class="linkwrap">
<div class="blocker"></div>
<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/Bu1XAkYluJ6/?utm_source=ig_embed&utm_medium=loading&utm_campaign=embed_loading_state_camera" data-instgrm-version="11" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:16px;"> [Instagram Embed Code Here] </div></blockquote>
</a>