I have six portfolio images on my homepage. On a desktop they have a dark overlay and the white text can be read easily. On mobile it's not working. Is there any way of having the dark overlay over the images in mobile?
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
@media only screen and (max-width: 1000px) and (min-width: 1px) {
.work-item:not([data-custom-content="on"]) .work-info-bg {
display: block !important;
}
}
Hi,
I have six portfolio images on my homepage. On a desktop they have a dark overlay and the white text can be read easily. On mobile it's not working. Is there any way of having the dark overlay over the images in mobile?
www.sugaredsaffron.co.uk
Hey Again,
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Thank you very much, it works great.