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

Menu Badger

描述

This is a simple plugin to add a badge to your menu. If you create a new page or feature on your website you can easily add a badge or button over top that says new, has a number like with apple notifications, or upload your own.

If you have any features you would like added to the next version or encounter any bugs please contact me.

Coming Soon Features

  • Create Outline around menu item
  • Add unlimited badges to your menu
  • Better Sub-menu functionality

屏幕截图

  • This is the configuration screen for the plugin. With these options selected your plugin will appear as the second screen shot does. You can adjust any of these or upload your own image.
  • This shows that you selected the iOS style badge 1 for your sample page and have chosen to display it small. The adjust badge location numbers have aligned it properly. You will need to adjust your badges based on your theme and visual preferences.

安装

  1. Upload the plugin directory ‘menu-badge’ to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the side bar item called Menu Badge to configure the plugin.

常见问题

Can I use my own image?

Yes you can, there is a feature to upload your own image.

What type of image does it need to be, are they any specifications?

Use a png with a clear background so that it appears as a button and not a square box.
Also you will want to keep the file size to 500-150px to save on load time.

Can you make this work with my theme?

In some instances people write code for their theme in a non standard way that causes the badges to appear wrong or not at all. If this is the case please email me and I will look at your site and patch the plugin to work. It currently works on 90%+ of sites tested.

评价

2020 年 7 月 8 日
This is one of the best plugins I've installed. I don't care whether it's been officially tested with my version of WP or not, it works flawlessly straight out of the box. * The supplied badges look great but you can also use your own. * You can position the badge exactly where you want it relative to the decorated menu item. * You can enable and disable it in 5 seconds without losing settings. Go, get, have! 🙂
阅读所有3条评价

贡献者及开发者

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

贡献者

将“Menu Badger”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.5

  • Cleaned up JavaScript a little, more coming
  • Added a check for buttons with class instead of ID for identifier

1.0.4

  • Changed onclick menu locator to setInterval for sub menu items

1.0.3

  • Menu item list wasn’t pulling menus properly, now makes list of all menus
  • version 1.0.1 and 1.0.2 we commit issues, no update

1.0

  • Initial launch of plugin
  • Add badges to you menu
  • Upload your own image to use as a badge
  • Choose size of your image
  • Align the image vertically and horizontally based on your needs