Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1185452

    Hello,

    I have a color section with a custom CSS class (intro-box-main). I have the CSS media query below. The intent is to remove the background image on small resolution devices. It works when I shrink my browser window, but not when I try it on my iPhone. I tried both Chrome and Safari and reset the cache. Any ideas?

    Thanks in advance.

    @media only screen and (max-width: 767px) {
    .intro-box-main {
    background: #fff;
    background-image: none !important;}}
    #1185546

    Hey swilschutz,

    I can’t see your CSS applying at all, where did you add it? Please try it in Quick CSS and don’t forget to select to delete the old CSS and JS files under Enfold->Performance before you check the results.

    Best regards,
    Rikard

    #1185554

    It’s in the Quick CSS section and it’s working — I can tell because it works when I resize a browser window on the desktop browser, just not in mobile.

    I cleared the settings under Performance and it’s still the same.

    #1185555

    See Private Content for admin access.

    #1186030

    Hi,
    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field instead:

    @media only screen and (max-width: 767px) {
    .intro-box-main > .av-parallax {
    background: #fff;
    background-image: unset !important;}}

    Best regards,
    Mike

    #1186097

    Yes, that worked. Thanks, Mike.

    #1186100

    Hi,

    Glad Mike could help! :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘CSS Media Query not Working on Mobile Phone’ is closed to new replies.