Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38022
    Jim Galanti
    Guest

    I am using the Crio template. On my website the background image on the front page does not show up on my iphone or ipad correctly. On a desk top the scrolling goes across the image. To make the image show up correctly on the desktop I padded it with a gray section above and below it. It appears that that is all that shows up on the phone and ipad without the scrolling effect. When I put the tablet in landscape mode I can see part of the picture but it is still not right.

    Any help is appreciated!
    Thanks!

    #38080
    Jesse Owens
    Keymaster

    Hi Jim-

    Thanks for reaching out, and thanks for using the Crio WordPress theme for business.

    iOS Safari doesn’t have support for backgrounds that are both background-attachment: fixed and background-size: cover. Compare these two screenshots of the site, first on an Android device:

    And on an iPhone:

    In your case, here’s how I’d fix it.

    First, the extra space you’ve added to the top and bottom of the image makes it a little tough to get it to look right everywhere. You mentioned you added that deliberately to make it look better on desktops. May I ask what was going on before you added those?

    Second, you can add a small snippet of CSS in your Customize > CSS/JS Editor to use scroll instead of fixed for iOS devices:

    @supports ( -webkit-touch-callout : none) {
    	.background-fixed {
    		background-attachment: scroll !important;
    	}
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Background image does not show up on iPhone’ is closed to new replies.