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.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.