Tagged: 

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #442127

    Hi

    I’m wondering if it is possible to hide sections (color section / grid row) that can be viewed on a computer monitor from showing on the responsive mobile version.

    for example if I would like to hide a Masonry Gallery from show on a mobile version of the website.

    #442315

    Hi simonnek!

    Yes you can hide elements for certain screen sizes, you could use something like this in Quick CSS:

    @media only screen and (max-width: 767px) {
    #id-of-element {
    display:none !important;
    }
    }

    Best regards,
    Rikard

    #554661

    Hello,

    I’m trying to get this to work, but how do I find the element ID of certain sections?

    Cheers,
    MEHSA

    #554670

    Hey!

    You can use developer tools or with view source and target your elements.
    https://codex.wordpress.org/Finding_Your_CSS_Styles

    Cheers!
    Basilis

    #554686

    Ah okay, so I guess it’s not possible to hide one element of the page on mobile without hiding all elements of that same name? For instance, on a page you have 4 horizontal blocks with an image, and on mobile you want to hide 2 of those boxes.

    #556569

    Hey!

    That is possible. Please see – http://kriesi.at/documentation/enfold/hide-menu-itemselements-on-mobile/

    Regards,
    Yigit

    #573915

    Yigit, I tried it and works great on ipad size, hides the elements, but then in small screen size (small mobile) it shows the element again, stacked. Any idea why?
    using it on a grid row
    @media only screen and (max-width: 990px) {
    .only-desktop { display: none !important; }}
    Monica

    #573924

    Hi!


    @mmcc
    Can you please post the link to your page so we can look into it? We may need a temporary admin login as well.
    If you post a private content here, it would be visible to the OP. If you would like to avoid that, please start a new thread and post sensitive information there.

    Regards,
    Yigit

    #573944

    Yigit,
    is the first grid on top with the pictures.

    #573964

    Hey!


    @mmcc
    Your code is currently as following

    @media only screen and (min-width: 767px)
    @media only screen and (max-width: 990px)
    .only-desktop {
        display: none !important;
    }

    Seems like you forgot to close first media query. Please make sure that your media queries are as following

    @media only screen and (max-width: 990px) {
    .only-desktop {
        display: none !important;
    }}

    If you would like us to look into it, please create a temporary admin login and post it here privately (again, the OP would see, so we recommend you to start a new thread in this case )

    Regards,
    Yigit

    #573969

    So sorry Yigit, I should have seen it
    Monica

    #573973

    Hey!


    @mmcc
    No worries at all Monica!
    We will keep the thread open to hear from the OP. If you have any other questions or issues, please feel free to start a new thread

    Regards,
    Yigit

    #714168

    Hi, I’m having a similar problem.

    I’ve gone through the multiple threads about this issue and I’m not sure I’ve come away with a real solution.

    I may be wrong, but I think that in this age of 1920×1080 Desktop Screens and 4K Phone screens that aspect ratio is more important that resolution.

    These rules based on resolution seem to not take into account high resolution mobile devices.

    Is there a possibility of using something like aspect ratio to determine how content gets shown?

    #714169

    Hey!


    @opersaud
    Have you referred to this post – http://kriesi.at/documentation/enfold/hide-menu-itemselements-on-mobile/
    If you have and that did not work for you, please start a new thread and attach temporary admin logins in private content field so we can look into it.
    If you post your credentials here, they will be visible to creator of this thread as well

    Best regards,
    Yigit

    #733555

    The guide is great, I was about to post a support request and it answered my question instantly.

    • This reply was modified 7 years, 11 months ago by Graham.
    #733588

    Hi,

    Glad we could help!
    We really appreciate it if you rate our theme on themeforest https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Hide Section In Mobile’ is closed to new replies.