Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
955 views
in Themes by
edited by

Can anyone tell me how to have fixed Topbar ?

Q2A version: 1.7.5

3 Answers

+4 votes
by
selected by
 
Best answer

This is how to have fixed Topbar navigation bar  in Q2A version: 1.7.5

Add the following in  qa-theme/SnowFlat/qa-styles.css

#qam-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
}
.qa-body-wrapper {
    margin-top: 100px;
}

Then edit qa-theme/SnowFlat/qa-theme.php Line 44

private $fixed_topbar = true;

See example website here

+1 vote
by

This is how you can do it.

#qam-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
}
.qa-body-wrapper {
    margin-top: 100px;
}
But do search your problems before you ask a question. This question has been asked multiple times before. I got this answer from this question.
by
I knew, but this is not working. It has issues!
This is the reason why I asked it again!
+4 votes
by
...