Site logo

[Resolved] Button Visibility In Mobile

Home Forums Support [Resolved] Button Visibility In Mobile

Home Forums Support Button Visibility In Mobile

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2516256
    Martin

    Hello!

    I have a header (see private area please) built with an Block Element hooked to “header”. There I have a Container wrapped by three Grids which contain in order: logo, nothing, “About Us” button in the right grid.

    That button should not be visible in Mobile. Only in desktop mode.

    I have not found the possibility to turn a visibility setting to exclude mobile. There is a conditional mode, but none of those conditions exclude mobile.

    Please help me, thank you, Martin

    #2516373
    Ying
    Staff
    Customer Support

    Hi Martin,

    That button should not be visible in Mobile. Only in desktop mode.

    You can add a GP built-in CSS class to the buttons block: hide-on-mobile.

    Add CSS class to block: https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/

    For more info: https://docs.generatepress.com/article/responsive-display/

    #2521486
    Martin

    Thank you. It works perfectly adding the class inside the button block.

    #2521607
    Ying
    Staff
    Customer Support

    Glad to hear that 🙂

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