Site logo

[Resolved] Hide images in tablet

Home Forums Support [Resolved] Hide images in tablet

Home Forums Support Hide images in tablet

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2479030
    Ella

    Hello,

    How can I hide images on small/mobile screens?

    Not sure if this is relevant: I have a paid version of GP and I use the free version of GB.

    Many thanks,
    Ella

    #2479218
    Leo
    Staff
    Customer Support

    Hi Ella,

    You can use the built-in hide-on classes:
    https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes

    Let me know if this helps 🙂

    #2480502
    Ella

    Hello Leo and team,

    Thank-you. I think I misunderstood something, because the image stayed. What I did was:

    1 – place the cursor on the image
    2 – in the Block tab, scrolled down to the ‘Advanced’ section, I copied hide-on-mobile into the Additional CSS class(es) box

    Nothing happened…

    Many thanks,
    Ella

    #2480597
    David
    Staff
    Customer Support

    Hi there

    can you share a link to the page, where this images isn’t hiding ?

    #2480614
    Ella

    Hi,
    Thank you for the speedy response
    https://test.sanskritatstjames.org.uk/resources/
    The first image (the open book)
    Thank you,

    #2480668
    David
    Staff
    Customer Support

    Its working for me. Have you tried clearing the browser caches ?

    For it to work on mobile and tablet add both classes to the block:

    hide-on-mobile hide-on-tablet

    #2480858
    Ella

    Hi David,
    Thank you. I thought I cleaned the cache but anyway… I tried it on my mobile (which I should have done before I contacted you, sorry!) and it does work.
    Thank you for your help,
    Ella 🙂

    #2480859
    Ella

    Forgot to mark as resolved.
    Thank you again,
    Ella

    #2480868
    David
    Staff
    Customer Support

    Glad we could be of help!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.