Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrandon Brigham
3,716 PointsHow to make top header sticky in Avada theme?
Hello,
The site I'm working on is : http://8d0.5a1.myftpupload.com/
There is a top header (brown color) on the very top of the site. Is there anyway to keep the top header sticky when scrolling up and down?
Thanks!
2 Answers
Philip Gales
15,193 PointsThankfully, one of my clients have the Avada theme on their website. Below is how I can make their header sticky.
- Go to dashboard > Avada > Theme Options > Sticky Header
- Check the top box to "Enable Sticky Header"
Many WordPress themes have random functions like this to help reduce the amount of css written by the user (They're made for non-code people)
Matt Van Dyck
1,033 PointsAdd this to your CSS file:
.fusion-sticky-header-wrapper {position: fixed; width: 100%;}
Brandon Brigham
3,716 PointsBrandon Brigham
3,716 PointsHi Philip,
I'm referring to the very top header not the menu. Thanks!