[英]Trying to get a load more button working on an Instagram Instafeed script but it isn't responding in my site
我有一个instagram feed集成到我要更新的网站中,我使用的是以前使用过的instafeed.js,并且设置了feed没问题,但是我试图集成一个将加载的更多按钮原始图片集下方有更多图片。
即使我之前已经在另一个站点中完成了此操作,并且使用的代码与那时完全相同,但是它并不想使加载更多的按钮起作用。 谁能帮助我找到我要去的地方并获得解决方案?
HTML:
<div class="instagramFeed row">
<div id="instafeed"></div>
<p id="mybutton">Load More...</p>
</div>
</div> <!-- end container three -->
CSS:
.instagramFeed {
padding-bottom: 40px;
border-bottom: 1px dotted #666666;
}
#instafeed {
position: relative;
width: 108%;
max-width: 108%;
z-index: 999;
}
#instafeed img {
position: relative;
width: 20%;
max-width: 100%;
margin-right: 4.5%;
margin-top: 4.5%;
}
#mybutton {
position: absolute;
z-index: 999;
}
JS:
var feed = new Instafeed({
target: 'instafeed',
get: 'tagged',
userId: 925022210,
tagName: 'justanotherinvegas',
accessToken: '925022210.467ede5.5d4dff89eb4c464392a859b27f8f43f5',
clientId: 'f1e17875a4214d059676570a91955844',
limit: '12',
sortBy: 'most-recent',
link: 'true',
template: '<a href="{{link}}" target="_blank"><img src="{{image}}" /></a>',
resolution: 'standard_resolution'
});
// call feed.next() on button click
$('#mybutton').on('click', function() {
feed.next();
});
feed.run();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.