Hide Menu & Gallery

Hi!

I'm currently working with the Hotel 2 theme. I really like it!
I have 2 questions:
1. I would like to hide my menu when you first enter the website. I want it to show when you scroll down. So I only want to show the sticky menu. How can I do this?
2.How do I add photo't to the gallery on the home page?

Best,
Savannah

Comments

  • Hi,

    1. To remove main header only, you need to use extra css:
    #Top_bar:not(.is-sticky) { display: none !important; }
    2. For galleries, we use default WP gallery. You can check the gallery shortcode as well.
  • Awesome! Thank for all your great work.

  • Sorry, I really don't get how to get the gallery on my homepage. I created a gallery on the 'image gallery' page. How do I make it appear on my homepage? There is already a gallery item on my homepage with the shortcode: 
    [gallery link="none" ids="291,299,1067,1068,1081,1092,1093,1094,1095,1098,1100,1105,1106"]

    Thanks in advance
  • And would it also be possible to only hide the main header on the home page?
  • Did you read the link for GALLERY SHORTCODE we gave you above? If you didn't please read it carefully. All you need to do to get own images, is replace existing ID's with own.

    In reference to 2nd question, do you mean to hide whole header (menu, logo, etc) from home page only?
  • Oh wow, so sorry. It was so obvious but I kept thinking i had to do something with the gallery page. 

    What i want to do with the menu: on the home page, i only want the sticky menu to show. The css you gave me worked perfectly. But I would like to show the original menu on all the other page, as well as the sticky menu. Can this ben done?

    Thanks for your awesome support.

    Best,
    Savannah
  • Yes, it is possible. Instead of the css we gave you above, please use the following one:
    body:not(.home) #Top_bar:not(.is-sticky) { display: none !important; }
  • Thanks! 
Sign In or Register to comment.