Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #515688

    Hi Enfold-team!

    First of all – thanks for a great theme and a great support forum!

    I have a problem with the hide-for-mobile css.
    I have a page with a number of grid rows, a few of them meant to be shown in a regular browser but not on mobile, and vice versa!
    I’ve used the following code:

    }
    @media only screen and (max-width: 767px) {
    #show-for-mobile {
    display:block !important;
    }
    #hide-for-mobile {
    display:none !important;
    }
    }
    @media only screen and (min-width: 768px) {
    #show-for-mobile {
    display:none !important;
    }
    #hide-for-mobile {
    display:block !important;
    }
    }

    The code works great with the task to hide elements from mobile screens, but it doesn’t hide elements from larger screens. On larger screens all of the grid rows are present :(

    Would be grateful for all help!

    Thx in advance / Gore

    #515796

    Hey gorehalling!

    Do you mind creating a temporary admin login and posting it here privately?

    Cheers!
    Yigit

    #515924

    Hi Yigit,

    ok here it comes:

    #515961

    Hey!

    You had multiple closing curly brackets missing after your media queries in your code. I closed them but i might have wrapped extra elements into them. Please review your website and code also – http://www.w3schools.com/cssref/css3_pr_mediaquery.asp

    Cheers!
    Yigit

    #516245

    Hi Yigit!
    That worked out great!! Thanks. :)

    Cheers!

    #516382

    Hey!

    You are welcome, we are always happy to help!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Have a great weekend!

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Hide-for-mobile not working properly’ is closed to new replies.