Wordpress 2020 Theme How To Make A Fixed Position Sticky Header

Wordpress 2020 Theme How To Make A Fixed Position Sticky Header

34,962 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

SKY
SKY - 28.03.2023 14:00

You earned a subscriber

Ответить
Kira-Marie von der Ohe
Kira-Marie von der Ohe - 22.03.2023 11:56

Thank you so much for the video. It helped me a lot. Good described. Appreciate!

Ответить
LX Design Studio
LX Design Studio - 13.10.2021 14:52

Hii, thanks for the amazin script..

im trying on the other hand to have a transparent nav header and when scrolling the background changes to black...
i used the following script. but it just makes the background black the whole time.. when its fixed and when its scrolling.

is there soemthing that im missing?
would be thrilled if someone assists.
Thanks


.main-header-bar {
position: fixed;
top: 0px;
padding: 5px 0;
width: 100%;
height: 90px;
background-color: transparent;
transition: all 0.4s ease-in-out;
-webkit-transition: all 0.4s ease-in-out;
z-index:1000 !important;
}


.main-header-bar {
position: scroll;
top: 0;
left: 0;
width: 100%;
z-index: 999 !important; transition: all 0.4s ease-in-out;
background-color:rgba(0, 0, 0,.8) !important;
}

Ответить
Leo
Leo - 07.10.2021 23:10

Thanks A LOT

Ответить
YiChing
YiChing - 25.05.2021 08:35

Thanks. But make position fixed, will block some of the contents in the top area. How should I do?

Ответить
Cavallo Giuliani
Cavallo Giuliani - 15.03.2021 10:50

Thank you for the Fixed Menu code, it works great. I'm using the new install of WordPress 5.7 theme 2020. I added the code and the menu looks great, but the TO THE TOP icon at the bottom of the page to go back to UP " STOPS WORKING". could you find the fix for this? added to the code you already shared? it would be great to have both features work and I have no idea where to look. I will subscribe to your channel and hope you read your comments. Thank you for looking into this in advance :)

Ответить
Sexy Mary
Sexy Mary - 14.03.2021 03:14

Now, this is better than adding new plugins that will bloat your site.

Ответить
TwoSuns Media
TwoSuns Media - 11.03.2021 08:47

You're the best!

Ответить
Usman Ahmad
Usman Ahmad - 26.02.2021 20:08

Very informative vedio..

Ответить
We-Are-Electric
We-Are-Electric - 12.02.2021 20:52

Thanks. Quicker and easier than trying to figure out how to do it in WordPress

Ответить
Influencer Quotes
Influencer Quotes - 10.02.2021 11:20

Thank You so much, I really appreciate your efforts

Ответить
Stephanie Idehen
Stephanie Idehen - 03.02.2021 17:27

Thank you so much 👍
I just subscribed to you channels

Ответить
Kophotograph
Kophotograph - 03.02.2021 17:16

OMG, thank you so much. Tried a lot of other things with css and also JavaScript, but the answer to this problem is super simple! Thank you!

Ответить
Park Chan
Park Chan - 26.01.2021 13:37

Hey thanks for that video it also was mindblowing for me! But I have one problem now.. my Logo is now in the middle since I coded it like that and I dont know why or how to bring my logo at the header again.. could you maybe help me?

Ответить
Manuel Maurício
Manuel Maurício - 25.01.2021 15:15

Amazing! One question though. I can't see the wordpress ribon when I log in. The one you wanted to hide when you opened the website on the incognito mode so you could check what other people would see. I have a black header, and the header isn't built on elementor, but a regular wordpress header. Thank you for the help

Ответить
mearaf tadewos
mearaf tadewos - 18.01.2021 11:32

Thank you! Super!

Ответить
Burt Jackson
Burt Jackson - 08.01.2021 01:03

Do you need elementor pro? Because it didn't work at all. everything just stays normal. As if I didn't do anything. Refreshed the page and all

Ответить
Viktoria Magnus
Viktoria Magnus - 03.01.2021 13:33

Thank you so much! Been struggling with it for hours till found your video. Subscribed :)

Ответить
KontoVonMir
KontoVonMir - 24.12.2020 14:51

I tried this in December 2020 and didn't work originally as described. However, I went to inspect element on the header like in the video and searched for a name how the header was described differently than "site-header". Mine was "main-header-bar" and after I replaced it, it worked perfectly fine like shows in the video. Thanks for everything!

Ответить
Cindy Pascal
Cindy Pascal - 03.12.2020 15:01

It's not clear

Ответить