sticky navbar

I am having problems creating a navbar which sticks on my site

it works fine on the home page but not in the main post pages. I tried putting in additional CSS
position; fixed; under nav#site-navigation which has the desired effect but which then affects the navbar dropdown facility.
Thanks in advance

hey there

Hope you are having a good day and thank you for your question :slight_smile:
Please add this CSSĀ in appearance - customize - additional CSS

body:not(.home) .main-container {
clear: both;
top: 130px;
position: relative;
body:not(.home) header#masthead {
position: fixed;
z-index: 99999;
width: 100%;

Colorlib Support Team

Works perfect. Thanks for your help

Hi, there

Nice to hear your problem is fixed:)
Now I will close the topic and mark it as resolved. Feel free to contact us again Thanks!