Remove domain name from thumbnail images?
-
Hello Tijmen,
Is there a way I can (via filter or otherwise) remove the domain name from the thumbnail image paths?
We are running into an issue where our Development server IP gets added to Production image paths and prevents the images from being able to load.
I have made a quick javascript hack for the time being, but I would love to tackle this from the server outright.
JS hack:
$('#wpsl-result-list').bind('DOMSubtreeModified', function(){
jQuery('.wpsl-store-location img').each( function(){
var source = this.src;
var pattern = /^.*\/\/[^\/]+/;
var fixedSource = source.replace(pattern,'');
this.src = fixedSource;
});
});
Thanks again for your help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove domain name from thumbnail images?’ is closed to new replies.