[Resolved] Blocks show/hide for Device

Home Forums Support [Resolved] Blocks show/hide for Device

Home Forums Support Blocks show/hide for Device

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1068642
    Ernst Wilhelm

    How can I hide a block in case the current device is a ‘smartphone’, is not a ‘smartphone’?

    #1068646
    David
    Staff
    Customer Support

    Hi there,

    you can use one of the hide-on-* classes that GP provides:

    https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes

    If you select a Block, and go to the Settings Sidebar under Advanced there is a Additional CSS field, simply add the relevant class or classes to that field.

    #1068690
    Ernst Wilhelm

    Thanks. Works fine 🙂

    #1068712
    David
    Staff
    Customer Support

    You’re welcome

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