-
A Arthur
@yaradria @michael_vvc just came across this (know its an old question) β
one way to do this is as followsMake sure intro image is ON.
into 'custom HTML at bottom', you can add/edit the following script
(change '34' to relate to your homepage ID)
(add your image urls from media library into the var of images...<script>
var images = ['https://yourwebsite.com/image-url', 'https://yourwebsite.com/image-url-2', 'https://yourwebsite.com/image-url-3', ];var randomImage = Math.floor(Math.random() * 3)
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
if(type == "page" && obj.id == 34){
jQuery(".mediawrap").css("background-image", "url('" + images[randomImage] +"')");
} else {
jQuery(".mediawrap").css("background-image", "")
}
});
</script> -
A Arthur
@Richard-Keith this is for a new site β but v excited to launch inβcommon projects, take a look: https://www.incommonprojects.co.uk/
-
A Arthur
@Richard-Keith thanks β great to be able to get it out there π
-
A Arthur
https://www.alicebowsher.co.uk/
We launched this yesterday πΊ for Alice π
-
A Arthur
@mariusjopen thanks β really cannot see why it is at present
-
A Arthur
@mariusjopen Hi Marius. We are using: "All-in-One WP Migration" and "Cookie Notice" plugins, and here is a Pastebin of the custom code https://pastebin.com/SgNDBYaN β and can confirm that all plugins and WordPress and LAY theme all up to date...
-
A Arthur
@arthur also when I view the image in a tab on its direct path through an IE emulator/viewer (...in Chrome) the image is crisp β https://nickholmesfineart.com/wp-content/uploads/2018/09/NH_portrait_3_alt.jpg
-
A Arthur
@mariusjopen Hi Marius β thanks. Most images are uploaded larger than required dims, to look nice and crisp on retina screen, so not sure what the best solution is to solve this? I have added the following code to try and help, but it has not done so apparently...
img {
-ms-interpolation-mode: bicubic;
} -
A Arthur
Experiencing fuzzy images in Internet Explorer, on most versions it seems. The site is nickholmesfineart.com β is there any way to resolve this ?