Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: How to show shortcode in WordPress menu? #32061
    david
    Participant

    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.

    • This reply was modified 1 year ago by david.
Viewing 1 post (of 1 total)
Close Search Window