How to Add a Sticky Menu for Floating Navigation in WordPress

A “sticky menu” ensures that your website navigation is always visible. When navigation is placed at the top of a page, it disappears as soon as a visitor scrolls down. The first attempt to solve this problem was the introduction of frames. Luckily, we’ve moved on from clunky frame technology and can now implement sleek navigation that stays in one place. We’re going to use the Sticky Menu (or whatever!) on the Scroll plugin to stick our navigation. This name is a mouthful, so to keep things simple, I’ll call the plugin “Sticky Menu”. What are sticky or floating menus? Before we begin, let’s talk about terminology for a moment.

How the Sticky Menu Works

The terms “sticky” and “floating” are used to describe a page element that does not move when the page scrolls. If these words sound contradictory, that’s because they are. It’s hard to imagine anything “sticky” floating around. But an argument can be made for either term, and both are commonly used, so we’ll use them interchangeably here. Installing the Sticky Menu Plugin Login to your WordPress admin panel. In the left navigation column, hover over the “Plugins” link and click the “Add New” link. hover over the “Plugins” link and click the “Add New” link In the “Search for plugins…” box, enter “Persistent menu”. Search for WordPress Sticky Menu plugin Latvia B2B Contact List Once you have located the plugin, click on the “Install Now” button. The plugin makes a page element sticky using the element’s CSS selector.

What Are Sticky or Floating Menus

Latvia B2B Contact List
Latvia B2B Contact List

It doesn’t work directly on menus or widgets (would be nice for all plugin developers). But it is possible to configure your own navigation bar, menu, or widget. We’ll need to do some research to find the CSS selector for the page element we want to paste. But since the plugin works the way it does, it’s more flexible than a point-and-click version. Finding CSS selectors on a page could be a tutorial in itself. I can’t cover the whole topic here, so we’ll use a quick and easy way to find CSS selectors. Our example uses Google Chrome “DevTools”.

Leave a comment

Your email address will not be published.