WordPress automatically adds the “http:” to any custom link you add to a menu item. However, shortcodes should not be added as custom links, but instead, they should be added as a custom menu item. Here’s how you can do it:
Go to Appearance > Menus in your WordPress dashboard.
Create a new menu or select an existing one.
Click on the “Custom Links” section to expand it.
In the “URL” field, enter a hashtag (#).
In the “Link Text” field, enter the name or label of your language select shortcode.
Click the “Add to Menu” button.
Now, you have created a custom menu item that will display the name or label of your language select shortcode. When users click on it, the shortcode will execute and display the language select options.
I hope this helps! Let me know if you have any other questions.
We are a team of WordPress experts, each specializing in the relevant fields with having a experience of working on various kinds of projects for over a decade now.
No more cutting your pockets with WP Small Fix!