Mobile dedicated photo

Home Forums Jevelin Theme Mobile dedicated photo

Home Forums Jevelin Theme Mobile dedicated photo

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • 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

    http://165.227.220.174/alabama-insurance-license/ ‎ (Among lots of others)

    I would like the rectangular photo to load on desktop, and the square to load on mobile.

    Thank you!

    Attachments:
    You must be logged in to view attached files.

    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.

Viewing 4 posts - 1 through 4 (of 4 total)