Auto external featured image in grid-home theme
-
The theme I’m using can display on homepage a grid of featured images of posts and automatically fit images in size and position.
Basically, it’s use the srcset attribute of img tag, and I set Nelio Content auto detect first image in a post as featured image.
To make the homepage display correctly, generated img tag of a post is like this:
———————————————–
<img style="background:url(img_url) no-repeat center center;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size: cover;" src=”img_url” srcset=”img_url 1920w, img_url 300w, …” … />
———————————————–But with first external image as featured image, it becomes:
————————————————
<img style="background:url(img_url) no-repeat center center;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size: cover;" src=”https://domain/nc-efi-placeholder.png” srcset=”https://domain/nc-efi-placeholder.png 1920w, https://domain/nc-efi-placeholder-300×169.png 300w, …” … />
————————————————
Is there anyway that make all those placeholder image to be replaced by external image url?Thanks
- The topic ‘Auto external featured image in grid-home theme’ is closed to new replies.