Create Sticky or Fixed Header in Astra Free Theme in 2022 | Sticky Menu in Astra Free Version
ฝัง
- เผยแพร่เมื่อ 19 ก.ย. 2024
- Create Sticky or Fixed Header in Astra Free Theme in 2022 | Sticky Menu in Astra Free Version.
// Best hosting for WordPress Website: partners.hostg...
I used div#page header#masthead {
position: fixed;
top:0;
width: 100%;
}
CSS from video didn't work....but yours "div#page header#masthead" did the trick! Thank you Tony
EDIT: Nevermind, I just had to turn "on" the option on the customisation menu. Thanks!!
Same here, the one in the video didn't work but this one did. It only worked on the home page, though. Any idea of how to make it work on the other pages/ blog posts? Thanks so much!!
Css from video didnt worked but your tag worrked thank u buddy u r great
You saved my life Tony, i will be gratefull to you for all my life. Thank you
thanks it worked perfectly
This won't work on a transparent header.
In which case you want something like this instead:
#masthead {
z-index: 10;
position: fixed !important;
width: 100%;
}
But thanks for the info! starts @5:11
.site-header {
position: fixed;
top: 0;
width: 100%;
}
Thank you thank you thank you ! ;-)
This guy, for the win! Thanks
Thank you so much for this.
THANK YOU!!!
Thank you CRACK!!
Ok so if you want your header to be transparent initially and turn solid color when scrolled down i figured this code after 2 hours:
#masthead {
position: fixed !important;
width: 100%;
z-index: 9999;
transition: background-color 0.3s ease, border-bottom 0.3s ease;
}
.sticky-header {
background-color: #ffffff;
border-bottom: 1px solid black;
}
Hello Rbn! Very informative and helpful! Thanks! Keep doing!😊
Your videos so informative !!! Great explaining!!!!
HI RBN, your videos are always so informative. Great explaining for people who need problems solved 👍 ~ Anna
Nice sharing
Hello RBN, great content as always, useful and informative, well explained, thanks for sharing 👍👌
2024-I have tried this and it works. Thank you for the css code.
This is very good it works with all the pages but it doesn't work with the home page. I believe because the home page header is set as transparent. So maybe there should be some particular instruction for transparent header? Any suggestion or recommendation? thanks
HI ! the same here
Fatafati Dada, You rock , thanks a million...
Dada, how to make an impressive footers on website..
Thank you. It worked flawlessly 🎉
Great share on how to create sticky headers!
Parabéns pelo seu lindo trabalho, sucessos sempre
Obrigada por dividir conosco o seu conhecimento 👏
Very good. Happy Birthday !
Unico tutorial serio e utile! grazie!!!! non parlo bene inglese e comunque ci sono riuscita :) grazie
My Dear New FRIEND Hello To You
Wonderful Video
Greetings From ISTANBUL
And in the end your idea worked for me ❤
Great tutorial. Thanks a lot.
❤️❤️❤️❤️
This is really helpful. Thank you so much 😊
Thank you for the information. I subscribed
Great info thanks!
seems like this no longer works with new Astra updates
Thank you for sharing friend
Thanks man !!! Really helpful. Tho, the image i had just after the menu. It did lose some space. Weird... How did u acces the responsive window so fast in your browser (at 7:09 min) ???
Great tutorial,im not really good at this
Thank you.
Good job. Thanks.
thank you, it works!
Thank you for great video but how did you know the CSS element name?
As in how did you get the css class for the header you use?
Hello sir, how are you, long time no see
Hello, it works like sticky yes, but it scrolls down above the content and does not stick.
Don't use this method. It's not adapted
work thax
hello, this isnt working for me for some reason. any ideas?
Not working in starter templates
too bad you didn’t add the code in your description
My dear friend I have a suggestion for you if you can transcribe what so ever you have to say it will be nice.,.also now you can choose your transcribe text into a voice with someone who does not have an accent
So transcribe plus voice AI will give you a clear video …if you choose female AI voice you will have more. Viewers …but in San Francisco it different they like boys voice also…!!!
Hi! This css code is not working.
not working for me
Soo where's the code ?
You are the best
Subscribe 🙂
Bro you spoke too much just start the work straight