[Resolved] How to remove header hero text on mobile?

Home Forums Support [Resolved] How to remove header hero text on mobile?

Home Forums Support How to remove header hero text on mobile?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1034417
    Hannah

    Is there a way to edit the header elements to display differently on mobile?

    I’ve made the text bigger for desktop but would like it to not be shown on mobile on the home page, and to be smaller on the other pages.

    I’d also like to set my image so it ‘zooms out’ and only uses the top section of the page on mobile (keeping the image in proportion) rather than displaying a thin section of the image and trying to bulk out the rest with the background colour.
    Hope that makes sense!

    I’ve tried adding the @media code into the header text and looking at the rules for exclusions etc but haven’t found anything that’s working at the moment.

    #1034441
    Leo
    Staff
    Customer Support

    Hi there,

    You can add the hide-on-mobile class to the page hero text:
    https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes

    Let me know if this helps ๐Ÿ™‚

    #1034872
    Hannah

    That works, thank you!

    #1035328
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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