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 trial

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!

Add this to your CSS file:

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