该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WP Floating Menu Framework

描述

The plugin is the framework for setting up the floating menu in WordPress.

I tested up the following themes, but I don’t engage the perfect work because I’m not designer.
Please fixing the codes in each JavaScript file or the theme for your environment.

  • Twenty Eleven
  • Twenty Twelve
  • Twenty Thirteen

安装

First of all, please install this plugin and activate it.

Then, please select JavaScript(JS) file from the setting menu “Floating Setting Menu” in the setting.

If you want to customize the JS file, please copy the template file in [plugin folder]/js/templates folder or [theme folder]/js/[plugin name]/ folder to js folder and rename it.

Then, please select JS file from the setting menu “Floating Setting Menu” in the setting.

Then, fixed the JS file for your WordPress environment (name, page, adminbar values).

!!!!!!!!!!!!!!!!!!!!!!!!!!!!
PLEASE backup the customizing files!!!
Now, when the plugin is updated, the customizing files will be deleted.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!

You can put a JS file for the floating menu.
Plugin folder/js

Theme folder/js/wp-floating-menu-framework/

Usage

Basically, please find out or set up “id” for the page and the floating menu.

ex. If you would like to apply the floating menu to the global navigation bar in Twenty Thirteen theme,
Please set up the following values in floating-menu.js.

  • var name = “#navbar”;
  • var page = “#page”;
  • var adminbar = “#wpadminbar”;

  • “name” value is used for setting up “position: absolute” and controlling floating area.

  • “page” value is used for adjusting the margin-top of the web page.

  • “adminbar” value is used for adjusting in case of enabling the admin bar (the logged in user).

So, when you use this plugin, you need to set up three id.

For example,

In case of setting up the following value,

  • “name” = “navigation-bar”
  • “page” = “page”

the HTML should be the following composition.

<body>

<div id=”page”>

<div id=”navigation-bar”>

.....
.....

</div>

</div>

</body>

常见问题

Cannot work on Twenty Ten

Ummm, I cannot understand the Twenty Ten’s layout…
Now, this plugin cannot work this theme.

评价

此插件暂无评价。

贡献者及开发者

“WP Floating Menu Framework” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.2

  • Fixed readme.txt and readmeJ.txt files.

1.0.1

  • Fixed Bug (Cannot select JS file).

1.0.0

  • First Released.