Open samseurynck opened 5 years ago
Update: I've tried linking directly to the image using:
var $url = 'http://localhost:8082/wordpress/wp-content/uploads/2018/12/20160627_093012.jpg';
$('.maak_announcement_img').backstretch($url, { fade: 500 });
and it worked just fine. This must mean that something is going wrong with the loop I'm using, which is interesting because Backstretch is working perfectly fine on other pages of my site.
I've successfully set up Backstretch on some pages of a Wordpress site I'm building, but on other pages I'm receiving this error message:
The images are coming from Advanced Custom Fields. Each image field is exporting a url, which I'm placing in divs where I want the images as the attribute data-img-src="".
I'm using the class bstretchMe to use in the function calling on Backstretch, which looks like this:
I'm definitely calling on an image because the links are showing as attributes when inspecting elements, but I think there's an issue with initiating backstretch... seems like a simple fix but I'm overlooking something.