Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
256 views
in Themes by
How can I make the header area sticky in the Snowflat theme?

1 Answer

+4 votes
by

Try putting something like this in your stylesheet:

#qam-topbar {
  position: sticky;
  top: 0;
  z-index: 1;
}

z-index puts the navigation bar before other elements.

ago by
+1
The code snippet clearly is not on your live system (https://www.problemli.com/qa-theme/SnowFlat/qa-styles.css). I'm not going to speculate why the change didn't show up there, since I know nothing about your workflow.
ago by
I have removed it because it is not there, my question is which code I will add in order not to spoil the site, I would appreciate it if you inform me about it.
sorry i'm just learning :)
ago by
The stylesheet already has a setting for the ID #qam-topbar (in line 375). Add the settings there. If you're still unsure of how to do that: please find a CSS tutorial first. This is not the right place for teaching you CSS basics.
ago by
it's done now, thank you very much, you helped me patiently :)
...