OOWCODE Custom Menu Shortcode

Description

OOWCODE Custom Menu Shortcode is a powerful and flexible tool that allows you to display WordPress menus using a simple shortcode. This plugin is perfect for users looking to customize the appearance and behavior of menus without needing to modify the theme’s code.

With the ability to configure inline menus, set custom separators, and add CSS classes, this plugin provides a fast and easy way to create personalized menus across your site. Whether you’re building a navigation system for a blog, portfolio, or ecommerce site, this plugin is designed to be flexible and intuitive.

Features

  • Display any WordPress menu using a shortcode.
  • Options to switch between list-style or inline-style menus.
  • Customizable separators for inline menus.
  • Add custom CSS classes for further styling control.
  • Multilingual support with .pot files included for translations.
  • Improved performance for faster menu rendering.
  • User-friendly dashboard for managing menus easily.
  • No coding knowledge required—just use the shortcode!

Example Shortcodes

  1. Default list-style menu:
    [oowcode_custom_menu name=”main-menu”]

  2. Inline menu with a custom separator:
    [oowcode_custom_menu name=”main-menu” style=”inline” separator=” – “]

  3. Menu with custom CSS class:
    [oowcode_custom_menu name=”main-menu” class=”custom-menu-style”]

  4. Multilingual menu setup:
    Use the lang attribute to specify a language for a menu (if configured):
    [oowcode_custom_menu name=”main-menu” lang=”fr”]

  5. Advanced setup with inline style and separator, plus additional CSS classes:
    [oowcode_custom_menu name=”main-menu” style=”inline” separator=” > ” class=”inline-menu custom-class”]

  6. Fallback menu:
    Specify a fallback message or menu to display if the targeted menu doesn’t exist:
    [oowcode_custom_menu name=”main-menu” fallback=”Default Menu”]

Available Shortcode Attributes

  • name (required): The name or slug of the menu to display.
  • class (optional): A custom CSS class for styling the menu container.
  • style (optional): Display the menu as a list (list, default) or inline (inline).
  • separator (optional): The separator used between items in an inline menu (default is |).
  • lang (optional): Display the menu in a specific language (requires multilingual setup).
  • fallback (optional): A fallback message or alternative menu if the specified menu is not found.

For additional support or to contribute, visit OOWCODE.

License

This plugin is licensed under the GPLv2 or later.

Installation

  1. Upload the plugin files to the /wp-content/plugins/oowcode-custom-menu-shortcode directory, or install the plugin directly through the WordPress plugins screen.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Add the shortcode [oowcode_custom_menu name="your-menu-slug"] to the post, page, or widget where you want to display the menu.

FAQ-e

What is the main shortcode for the plugin?

Use [oowcode_custom_menu name="your-menu-slug"] to display your menu.

Can I add a custom CSS class to the menu?

Yes, simply use the class attribute in the shortcode. For example: [oowcode_custom_menu name="your-menu-slug" class="custom-menu"].

Does the plugin support inline menus?

Yes, set the style attribute to inline and use the separator attribute to define custom separators. Example: [oowcode_custom_menu name="main-menu" style="inline" separator=" - "].

How do I use the multilingual feature?

Use the lang attribute in the shortcode to specify the language. Example: [oowcode_custom_menu name="main-menu" lang="es"].

Reviews

There are no reviews for this plugin.

Contributors & Developers

“OOWCODE Custom Menu Shortcode” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.3

  • Upgrade to version 1.3 for improved code structure, performance, and enhanced customization options.

1.2

  • Added support for multiple languages to enhance accessibility and global reach:
    • Arabic (ar)
    • German (de_DE)
    • English (United States) (en_US)
    • Spanish (Spain) (es_ES)
    • French (France) (fr_FR)
    • Italian (it_IT)
    • Japanese (ja)
    • Dutch (nl_NL)
    • Polish (pl_PL)
    • Portuguese (Portugal) (pt_PT)
    • Russian (ru_RU)
    • Chinese (China) (zh_CN)
  • Ensured translations are 100% complete for all supported languages.
  • Updated .pot file to facilitate additional translations in the future.

1.1

  • Improved shortcode options for better flexibility, including enhanced handling of separators and CSS classes.
  • Added support for multilingual menus with .pot files included for easy translations.
  • Optimized performance for faster rendering of menus.
  • Updated dashboard UI for a more user-friendly experience.

1.0

  • Initial release with support for custom WordPress menus using shortcodes.
  • Added inline menu feature with customizable separators.
  • Custom CSS classes for additional styling.