Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #855402

    Hi there,
    first I want to say thanks for this great theme!

    I have a problem concerning the background-image in a color section on mobile devices. On desktop everything works like a charm :) but on mobile devices the background image looks very ugly and blurry …
    I have searched the forum for hours now and tried a lot of suggestions (like giving a #unique_id to the section and put some media query code in the CSS) but nothing works for me.
    At last I found this post

    and I think I have exactly the same problem as “sue” has:

    Hi
    i had the same issue – and found half of the problem. when you select “scroll / srcolling” on the attribute drop down menu for the background image (in the color section) then it works fine on iphone display. BUT if you choose fixed or parallax it will be still deeing visible on iphone displays.

    I really need the background image to be fixed and I would like to remove it – better replace it on mobile devices.

    So maybe you found a solution in the meantime?
    Any help is very appreciated!

    Thanks in advance!

    #855543

    Hey,
    I think I found a solution :)
    I found this code here in the forum, which removes the background-image of the color section on mobile devices

    @media only screen and (max-device-width: 1023px) 
    {
    	.avia-section
    	{
    		background-image:none!important;
    		background-color: transparent;
    	}
    
    	.av-parallax.avia-full-stretch.active-parallax
    	{
    		background-image:none!important;
    		background-color: transparent;
    	}
    }

    I combined this with a CSS snippet I found on stackoverflow
    (https://stackoverflow.com/questions/26372127/background-fixed-no-repeat-not-working-on-mobile)

    I put several media-queries in my CSS to provide the background-image in different sizes.

    for example

    @media only screen 
    and (max-device-width : 667px)
    and (orientation : portrait) 
    {	
    	body:before 
    	{
    		content: "";
    		display: block;
    		position: fixed !important;
    		left: 0;
    		top: 0;
    		width: 100%;
    		height: 100%;
    		z-index: 0;
    		background: url(<strong>image-url-01</strong>) no-repeat center center !important;
    		-webkit-background-size: cover;
    		-moz-background-size: cover;
    		-o-background-size: cover;
    		background-size: cover;
    	}
    }
    @media only screen 
    and (max-device-width : 667px)
    and (orientation : portrait) 
    {	
    	body:before 
    	{
    		content: "";
    		display: block;
    		position: fixed !important;
    		left: 0;
    		top: 0;
    		width: 100%;
    		height: 100%;
    		z-index: 0;
    		background: url(<strong>image-url-02</strong>) no-repeat center center !important;
    		-webkit-background-size: cover;
    		-moz-background-size: cover;
    		-o-background-size: cover;
    		background-size: cover;
    	}
    }

    Maybe this is *a bit* amateurish ;) but it works for me – so long.
    Thanks nevertheless – the theme is great!!!

    #855579

    Hi,

    I’m glad you were able to formulate a solution. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Background image om color Section mobile Problem’ is closed to new replies.