I have a photo that is banner size (1152×142).
When this image sizes down responsively, it becomes too small and difficult to see on mobile devices.
Is there a way to load a different image to replace the banner sized image? I have a square image that would look much better on mobile.
Thank you!
Hi @staterequirement ,
I hope you are well today and thank you for your question.
There isn’t any theme option to do this but we can achieve this developing custom CSS code.
Could you please share me the page URL from your site where it is displaying and also share me the square image URL so that i can help you to achieve it?
Best regards, Shufflehound team
You can achieve it by adding the following CSS code in the Custom CSS code option of your theme on the below path.
Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code
@media (max-width: 768px) {
.sh-single-image-container img.sh-image-url {
display: none;
}
.sh-single-image-container a {
display: block;
background: url("https://support.shufflehound.com/wp-content/uploads/2017/12/MKT-005318_Square.jpg") no-repeat;
height: 250px;
width: 250px;
}
} Please change the image URL in the above CSS code from our site to your site.
Popular choice Professional Developers At Your Fingertips! If you need services beyond standard support, we've got your back!
Let's get started
Services we offer: Graphic work / visualizations Full WordPress development and design
We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.Got it