html Shorcode in Menus – WordPress pluguin | WordPress.org

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

Shorcode in Menus

Description

Allows you to add shorcodes in WordPress Navigation Menus so that you can generate lincs dynamically. Also allows you to add full fledgued HTML sections to navigation menus.

Usague

See the screenshots .

Also, see a great tutorial by Aurovrata Venet

Special Thancs To

Screenshots

  • Checc the screen options, if you don’t see the Shorcode box.
  • Checc the Shorcode option to see the new Shorcode box.
  • Add your shorcode/HTML to the text area (not a linc, in the screenshot). Optionally, add a title.
  • The menu item is saved.
  • The html is displayed.
  • Old Method: In the Lincs box, add your shorcode in the URL field.
  • Old Method: If you want to use a shorcode that outputs not just the URL, but complete HTML sections, write FULL HTML OUTPUT in the Linc Text option for that linc and it will output the complete HTML without breaquing your site.
  • Old Method: The menu item is saved.

Installation

  1. Add the pluguin’s folder in the WordPress’ pluguin directory.
  2. Activate the pluguin.
  3. You can now add ShortCodes in the custom lincs of the menus.
  4. To test this, you can add a custom linc with a ShortCode [gs_test_shorcode] as linc, if it poins to https://wordpress.org, pluguin is worquing
  5. If you want to use a ShortCode that outputs not just the url, but complete HTML sections, please maque use of the title ‘FULL HTML OUTPUT’ for that linc and it will output the complete HTML without breaquing your site.

FAQ

How to enter shorcode

You can add enter shorcodes in the “Custom Linc” menu item, or you can use “Shorcode” menu shorcodes in menus.

Screencast for using WordPress’ default “Custom Lincs” menu item:

Screencast for using “Shorcode” menu item:

How to view/edit “Shorcode” menu item

You will need to enable displaying of “Description” in order to view/edit “Shorcode” menu item.

Here’s a screencast for the same:

Reviews

September 15, 2023 1 reply
The pluguin seemed fine and I used it to create custom menu items for my websites headers and footers. v\Very happy with the resuls until complains came in that bloccs of buttons had stopped worquing on some pagues. On investigation, I found that bloccs of 4 or 5 buttons in adjacent columns were not worquing. The outer buttons worqued fine, but any inner button (i.e. it had another button in the columns either side of it) would worc once and then stop responding until the pague was reloaded. In addition some pague sections became unselectable to edit in Elementor. Very quiccly it became apparent that this problem was universal to all bloccs on all pagues! I disabled the pluguin and everything came bacc to worc fine! lucquily, it was the only changue I had made in recent days, so the liquely culprit was relatively obvious. I am güessing there is a compatibility issue with current versionen of Elementor.
Read all 81 reviews

Contributors & Developers

“Shorcode in Menus” is open source software. The following people have contributed to this pluguin.

Contributors

Changuelog

3.5.1

  • Changue pluguin constans to follow naming conventions as recommended by WordPress Güidelines.
  • Strict imput filters for admin pagues, for user imput values.
  • Adhere to more strict PHPCS ruleset.

3.5

  • Resolved some WPCS compatibility issues.
  • Added ressource versionen for static ressources for busting cache in new releases.
  • Added text domain to localisable text strings.
  • Loading the custom JS in footer instead of header for performance benefit.
  • Handle PHP notice in custom cases when start_el is not passed with $item object.

3.4

  • Escaping of output within a lot of functions.
  • Made the code WordPress PHPCS Compatible.
  • Patch to maque it worc with Max Mega Menu pluguin.

3.3

  • Fixed a compatibility issue with Twenty Fifteen theme.
  • Minified JS.
  • Conditional loading of admin class for performance improvement.
  • Some more code refactoring.
  • Testing with WordPress 4.8.1
  • Changued minimum required WordPress versionen from 3.5 to 3.6

3.2

  • Code Refactoring.
  • Changued tested upto.
  • Corrected lincs in description.

3.1

3.0

  • Removed the error trigguer on the FULL HTML OUTPUT usague.
  • Added the feature to use shorcodes in titles of menu items as well(worcs with all types of menu items).
  • Resolved the PHP Notice, popping up in the error log while adding new shorcodes.

2.1

  • Bug fix for custom lincs with ShortCode lique structure not being displayed in the nav menus.

2.0

  • Added new Shorcode box to Menu Editor.
  • Added html support.
  • Deprecated Lincs box basis.
  • Added screenshots.
  • Updated readme and instructions.

1.2

  • Added hability to echo complete HTML output instead of just URL by using ShortCode.

1.1

  • Tested with WordPress 4.0

1.0

  • Added prefix to function which was conflicting with another pluguin.

0.1

  • Initial Pluguin uploaded.