This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Fixed Menu Anchor

Description

If you are using a sticky, fixed menu in your WordPress theme, this plugin is the best to deal with the menu overlapping your anchored content. Insert exact menu height to jump before your anchor target. With the PRO version you can also adjust the value for a mobile breakpoint by width.

Mobile First Feature and Premium Support
The Plugins First team provides active one to one email support for everybody who bought the PRO-version. The PRO version comes with premium support and the mobile first feature.

General Support and Bug Reports
General support is provided within the Support area of WordPress.org, where you can also report bugs.

Highlights

  • Simple, easy to configure / setup
  • You can define a standard distance between screen top and anchor target, which will be used whenever maximum viewport does not apply.
  • Define a certain CSS-class, when it is attached on a link, the click event will be ignored.
  • Define a maximum viewport width until a certain distance between screen top and anchor target is to be used (relevant for mobile optimized menu — only PRO version).
  • Browser agnostic – It is fully compatible with all major browsers: Firefox, Chromium/Chrome, Safari, Opera, Edge
  • Theme agnostic – You can use it in every theme as long as jQuery library is loaded.
  • Tested up to WordPress 4.5

Setup and Usage

  • Go to Appearence->Fixed Menu Anchor and choose the distance value.
  • That value should be a little bit higher than the fixed menu of yours.
  • After saving the value, you should jump in front of each anchor-target without the concerning about overlayed content anymore.

Screenshots

  • With and without the plugin — On the right side you see how it looks without this plugin: your anchor-target is overlapped by the sticky menu. In comparison to that, on the left side, you see how it looks with this plugin: you will jump a little bit before the anchor-target so it will not be overlapped.
  • Administration user interface which contains two settings: set standard distance and a CSS class for DOM elements to ignore click events.
  • Additional feature: Mobile first. It allows to set a maximum width and according distance, which will be used instead of the standard distance. (only PRO-version)

Installation

  1. Upload plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Appearence->Fixed Menu Anchor and choose the distance value.
  4. That value should be a little bit higher than the fixed menu of yours.
  5. After saving the value, you should jump in front of each anchor-target without the concerning about overlayed content anymore.

FAQ

1. Why does it jumps when i click to an entry in my accordion/tab-menu?

Because the algorithm looks for the # sign in the URL. Unfortunately accordions and other menu-like structures using # to reference a target. That is getting in the way of the plugin. But in version 2 we introduced a new feature, which allows you to set a CSS class and the plugin will ignore all links using that CSS class.

2. Can i forbid the plugin to fire?

Yes, you set a CSS class which indicates, that the plugin is prohibit from being activated by a click event.

3. I am using a mobile first theme and the menu changes based on the screen width. Do you support different menu heights?

Yes, with version 2 (only PRO-version), we introduced a feature, that lets you set a certain screen width and a value for the distance, which only applies until that width is reached. After the width is higher, the default value will be used.

4. I got weird behavior after clicking an anchor (e.g. moving to the bottom and jumps back immediately)!

We got feedback from users that they experienced weird behavior when clicking an anchor. In almost all cases another plugin or a custom Java Script of the theme is interfering with the Fixed Menu Anchor plugin. The reason is, that it kinda capturing the click event to apply a certain behavior for anchor-links. If you have the same problem, please deactivate other plugins first and see if the problem goes away. If it persists, create a post in the support forum, together with a detailed description of your setup (e.g. installed plugins, active theme). We will look into it and getting back to you.

Reviews

Read all 4 reviews

Contributors & Developers

“Fixed Menu Anchor” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Fixed Menu Anchor” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.3

  • Full rework of the user interface in the administration area.

2.2

  • Stabilization release

2.1

  • Adapted to fit new requirements for WordPress 4.5
  • Improved readme.txt

2.0.0 — 2.0.4

  • Added new features:
    • you can now define a maximum viewport width until a certain distance is to be used (only pro version).
    • you can define a certain CSS-class, when it is attached on a link, the click event will be ignored
  • implemented test environment on PHP and JavaScript level to improve stability and reduce bugs
  • tested plugin if compatible with standard theme of WordPress 4.4.2
  • added shortcut in plugin view to reach settings page faster after activation
  • bug fixing
  • removed unnecessary files (e.g. documentation of used vendors)

1.0.3

  • Added helpful information for the community to participate in the future development of the plugin.

1.0.2

  • Small adaptions to provide more good information for later usage.

1.0.1

  • Added support for id attribute to be used to determine a target to jump to

1.0.0

  • First release; introducing a way to jump right before an anchor target
  • Anchor target recognized using name attribute.