I am working on a section of a website that uses instafeed.js to pull the three most recent images from an instagram account. I got the images loading correctly, but I need some advice on how to style these images the way the need to be. The html that is generated from instafeed doesn’t provide classes for the imgaes, otherwise I wouldn’t be seeking help. Below are screenshots of how I need it, and how it currently is. Also there is the HTML of the source file, and what gets generated from instafeed. Any help would be really great!
How images get loaded by default (how it is currently):
Source file HTML (instafeed looks for a div with an id of “instafeed” to load the images into):
<div class="col2">
<div class="insta-box">
<div id="instafeed"></div>
</div>
<div class="acell">
<div class="contentbox">
<a href="https://www.youtube.com/channel/UCQEXfLzrNpxe7AZme3dTP0w" target="_blank"><img class="yt-bg" src="<?php bloginfo('stylesheet_directory'); ?>/images/youtube-img.jpg" alt="Youtube" /><span><img class="play" src="<?php bloginfo('stylesheet_directory'); ?>/images/play-img.png"></img>Press Play!</span></a>
</div>
</div>
</div>
What gets generated:
You may be able to access the ID of each photo within a template via the Instafeed object. See documentation for templating here
Try this