Forum Replies Created
-
Author
-
ghodsonParticipant
I am getting complete white page. Make sure you are not seeing a cached version. See screenshot.
Attachments:
You must be logged in to view attached files.ghodsonParticipantGo to LSSBEI.com/blog and you will notice I have just posted a link to a newspaper article. On that page (being the blog masonry) I want to show the featured image associated with that post, and for that image to link to the link (not to the single post page)
ghodsonParticipantI’ve just noticed that this fix won’t work because it places the image on other pages, when it should only be on the blog archive page.
ghodsonParticipantThanks the only problem with this is that the container has no height if padding is removed. I.e you can only see a thin strip about 40px. I want to show around 300px in height and have it resize to about 150px on mobile if you get what I mean.
ghodsonParticipantThanks, this worked great. I took screenshots of what was there and just used them as thumbnails. I then made sure that I selected it not to show the feature image on the post page.
ghodsonParticipantWhat would you recommend? My main concern is the site loading time which is around 13 secs. I need to get down to at least 6 secs.
ghodsonParticipantIs it not as simple as changing the html to eg. <iframe width=”560″ height=”315″ src=”” data-src=”//www.youtube.com/embed/OMOVFvcNfvE” frameborder=”0″ allowfullscreen></iframe>
Removing src=”” and replacing with data-src=””
and then adding the script to the bottom of the page.
<script>
function init() {
var vidDefer = document.getElementsByTagName(‘iframe’);
for (var i=0; i<vidDefer.length; i++) {
if(vidDefer[i].getAttribute(‘data-src’)) {
vidDefer[i].setAttribute(‘src’,vidDefer[i].getAttribute(‘data-src’));
} } }
window.onload = init;
</script>I just need to know what tempaltes to modify?
ghodsonParticipantTried that already, didn’t work.
I think it might have something to do with being src rather than data-src. It’s not just YouTube either. I am also embedding Soundcloud and using video option in Post to be able to show image. -
AuthorPosts