How to get a fixed navbar #464
-
I want to have a fixed navbar, so I set "fixed-top" as additional class in backpack/base config. What to do, to get a fixed header? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @SiL3NC3 thanks for the question. it's not straightfoward with the Backpack theme at the moment 😞 , in v6 this will be smooooooth, but right now it's kinda messy. You need to set I won't suggest to change Check in the browser inspector what other stuff To load your custom css: https://backpackforlaravel.com/docs/5.x/base-how-to#add-custom-css-to-all-admin-panel-pages Hope it helps 🙏 Let me know if you have any issues! |
Beta Was this translation helpful? Give feedback.
-
I'm closing this issue due to inactivity. If you need further assistance or have additional questions, feel free to reopen this issue or create a new one. We're here to help! |
Beta Was this translation helpful? Give feedback.
Hey @SiL3NC3 thanks for the question.
it's not straightfoward with the Backpack theme at the moment 😞 , in v6 this will be smooooooth, but right now it's kinda messy.
You need to set
fixed-top
as you did, but also this Backpack theme uses another class that isapp-header
, and that class breaks the usage of thefixed-top
position in the header because it usesposition: relative;
.I won't suggest to change
.app-header
directly because it's also used in thesidebar
, so what I suggest is that you remove the.app-header
class from the header classes and add the.fixed-top
. This will make the header sticky but will lose other configurations that are present in.app-header
.Check in the browser …