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.
- Twenty Eleven
- Twenty Twelve
- Twenty Thirteen
First of all, please install this plugin and activate it.
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.
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.
In case of setting up the following value,
- “name” = “navigation-bar”
- “page” = “page”
the HTML should be the following composition.
- 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” 是开源软件。 以下人员对此插件做出了贡献。贡献者
- Fixed readme.txt and readmeJ.txt files.
- Fixed Bug (Cannot select JS file).
- First Released.