Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress

Brandon Brigham
Brandon Brigham
3,716 Points

How 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

Thankfully, one of my clients have the Avada theme on their website. Below is how I can make their header sticky.

  1. Go to dashboard > Avada > Theme Options > Sticky Header
  2. 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)

Brandon Brigham
Brandon Brigham
3,716 Points

Hi Philip,

I'm referring to the very top header not the menu. Thanks!

Matt Van Dyck
Matt Van Dyck
1,033 Points

Add this to your CSS file:

.fusion-sticky-header-wrapper {position: fixed; width: 100%;}