[Resolved] Hide ‘Hook’ on Mobile Device?

Home Forums Support [Resolved] Hide ‘Hook’ on Mobile Device?

Home Forums Support Hide ‘Hook’ on Mobile Device?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2072830
    Andy

    Hi there,

    I have added a hook called ‘advertorial,’

    I’d like to hide it on mobile device only (but keep showing on desktop view).

    How can I achieve this?

    Please see private information for link

    Thank you

    #2072889
    Leo
    Staff
    Customer Support

    Hi there,

    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 🙂

    #2072962
    Andy

    Hi Leo,

    I didn’t know you can do that with elements. Where do I add the hide-on class for my hook? Thanks

    #2072965
    Leo
    Staff
    Customer Support

    Is it a block element hook or a hook element?

    #2072975
    Andy

    A hook element. Does it need to be a block element? Thanks

    #2072976
    Leo
    Staff
    Customer Support

    No.

    What are you adding?

    Can you provide the content here?

    Make sure to highlight it and click the CODE button.

    #2072988
    Andy

    Hey Leo, please check out my screenshot in private info

    #2073244
    David
    Staff
    Customer Support

    Hi there,

    you can edit your HTML to include the classes eg.

    <div class="hide-on-mobile">
     Add your content in here
    </div>
    #2075936
    Andy

    Thank you!

    #2076389
    David
    Staff
    Customer Support

    You’re welcome

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