[Resolved] Hide Page Hero certain pages

Home Forums Support [Resolved] Hide Page Hero certain pages

Home Forums Support Hide Page Hero certain pages

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #623477
    Rob

    Hi,

    I would like to hide a certain page hero for tablet and mobile on all pages except for the woocommerce pages. Is there an easy way to do this? Could use css but not a nice work-around.

    Would be sweet if this would be a feature in the new layout elements, to disable the page hero :).
    Still doesnt fix this issue for mobile and tablet though, or mobile should also be integrated in Elements.

    Any thoughts?

    Cheers
    Rob

    GeneratePress 2.1.3
    GP Premium 1.6.2
    #623645
    Leo
    Staff
    Customer Support

    Hi there,

    CSS solution is needed for something specific for mobile and tablet.

    Which page hero are you trying to hide?

    I can provide the code πŸ™‚

    #623699
    Rob

    Hi Leo,

    I want to hide my Main Chirstmas Header page hero on all pages.

    I want to keep the page hero I made for the search widget on the shop pages which I merge with navigation.

    I dont see an unique id for theses heroes though.

    Lemme know :).

    #623783
    Leo
    Staff
    Customer Support

    Just to make sure, you are trying to hide the page header that’s on home page on all pages in mobile and tablet?

    Hmm I thought the page hero should have an unique ID but I don’t see it either. Will confirm with Tom.

    In the mean time you can add a custom class to the page hero and just use CSS to hide it πŸ™‚

    #623788
    Leo
    Staff
    Customer Support

    Just confirmed with Tom that automatic ID for page hero is removed because the addition of custom CSS field.

    In that case you can just add hide-on-mobile and hide-on-tablet classes to that page hero:
    https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes

    #623795
    Rob

    Thank you Leo, that’s exactly what I wanted!

    Should have known Tom thought this through :D….

    Cheers,
    Rob

    #623799
    Leo
    Staff
    Customer Support
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.