PHPackages                             proteusthemes/sticky-menu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. proteusthemes/sticky-menu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

proteusthemes/sticky-menu
=========================

Sticky menu PHP composer package for all newer PT themes.

v2.0.0(1y ago)13.0k↑257.1%1GPL-2.0-or-laterPHP

Since Jul 13Pushed 1y ago2 watchersCompare

[ Source](https://github.com/proteusthemes/sticky-menu)[ Packagist](https://packagist.org/packages/proteusthemes/sticky-menu)[ RSS](/packages/proteusthemes-sticky-menu/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (18)Used By (0)

ProteusThemes Sticky Menu
=========================

[](#proteusthemes-sticky-menu)

This is a composer package for the PT Sticky Menu, also available on the packagist repository: .

How it works
------------

[](#how-it-works)

In customizer under *Theme Options -&gt; Sticky menu* you will find the settings for the sticky menu:

- enable/disable sticky menu checkbox,
- featured page button settings,
- sticky menu container background color.

The sticky menu will be displayed only when the user scrolls up, otherwise it will remain hidden.

Instructions
------------

[](#instructions)

1. require this package in your composer.json file: "proteusthemes/sticky-menu",
2. run `composer update`,
3. import the basic SCSS file into the theme (in style.scss file): `@import '../../vendor/proteusthemes/sticky-menu/assets/scss/sticky-menu-minimal';`,
4. require the js file in the theme (in main.js file). Just add this path to the `require` call: `'vendor/proteusthemes/sticky-menu/assets/js/sticky-menu'`,
5. run `grunt build`, to generate new style.css file (with sticky menu css),
6. insert `js-sticky-mobile-option` and `js-sticky-desktop-option` classes, to the HTML elements, from which the sticky menu will be active. Example: add `js-sticky-mobile-option` class to hamburger button and add the `js-sticky-desktop-option` class to the nav element in header. When the browser window top will scroll to these elements, the sticky menu will be activated,
7. use the `pt-sticky-menu/theme_panel` filter to set the panel, to which the sticky menu will be attached in the customizer,
8. instantiate the sticky menu class (take a look at the */inc/theme-sticky-menu.php* file in Auto theme, which is then required in functions.php)

That should be it. Now you just have to style the sticky menu according to the theme style.

Filters
-------

[](#filters)

There are a few filters, which you can use to modify the behavior of the sticky menu:

- `pt-sticky-menu/settings_default`, used for specifying the default customizer settings,
- `pt-sticky-menu/logo_mod_names`, change the theme\_mod names for the logos,
- `pt-sticky-menu/theme_menu_location`, change menu location name used for the sticky menu,
- `pt-sticky-menu/cta_html_output`, change the CTA HTML output,
- `pt-sticky-menu/theme_panel`, change the customizer panel name, to which the Sticky Menu section will be attached,
- `pt-sticky-menu/mobile_menu_button_class`, mobile menu button class, default is `btn-primary`,
- `pt-sticky-menu/cta_button_class`, CTA button class, default is `btn-primary`.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 58.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~190 days

Recently: every ~621 days

Total

17

Last Release

596d ago

Major Versions

v1.4.2 → v2.0.02024-11-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/87e491278b98de1334b7deb37b35382ed738cc9e4ecfc23f4bf64e37041debce?d=identicon)[rkon\_pt](/maintainers/rkon_pt)

![](https://www.gravatar.com/avatar/6467c9ba9dd68dcf91cb14ca615783b0013a464f3c0e7155aac2e1b1f0fbbefb?d=identicon)[ngalt\_pt](/maintainers/ngalt_pt)

---

Top Contributors

[![capuderg](https://avatars.githubusercontent.com/u/9714134?v=4)](https://github.com/capuderg "capuderg (51 commits)")[![primozcigler](https://avatars.githubusercontent.com/u/4201548?v=4)](https://github.com/primozcigler "primozcigler (14 commits)")[![Prelc](https://avatars.githubusercontent.com/u/6077926?v=4)](https://github.com/Prelc "Prelc (13 commits)")[![krumpak](https://avatars.githubusercontent.com/u/8711213?v=4)](https://github.com/krumpak "krumpak (7 commits)")[![adiabatic](https://avatars.githubusercontent.com/u/101246?v=4)](https://github.com/adiabatic "adiabatic (1 commits)")[![ryankon](https://avatars.githubusercontent.com/u/1301802?v=4)](https://github.com/ryankon "ryankon (1 commits)")

---

Tags

wordpressmenuwpthemestickycustomizerproteusthemes

### Embed Badge

![Health badge](/badges/proteusthemes-sticky-menu/health.svg)

```
[![Health](https://phpackages.com/badges/proteusthemes-sticky-menu/health.svg)](https://phpackages.com/packages/proteusthemes-sticky-menu)
```

###  Alternatives

[proteusthemes/wp-customizer-utilities

Advanced WordPress customizer controls and settings for better user experience.

329.9k1](/packages/proteusthemes-wp-customizer-utilities)[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k230.2k13](/packages/tgmpa-tgm-plugin-activation)[aristath/kirki

Extending the WordPress customizer

1.3k73.1k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.7k](/packages/afragen-git-updater)[balbuf/composer-wp

Manage WordPress core, plugins, and themes with composer.

173.6k](/packages/balbuf-composer-wp)[typisttech/wp-admin-notices

A simplified OOP implementation of the WordPress admin notices

141.2k](/packages/typisttech-wp-admin-notices)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
