# Shortcode as a menu item

It is possible to use the [search box shortcode](/search-shortcode.md) in a menu as the title field. The menu item will be automatically replaced with the search bar. This simple guide will help you achieve that.

1\) Under the **Appearence -> Menus** submenu open up (or create) the menu you want to edit.

![](http://i.imgur.com/QqCp0qu.png)

2\) Click on the **Custom Links** item and as the *URL* enter anything (I used the '#' character in this example), and as the *Link Text* paste the search shortcode, then click the **Add to Menu** button.

![](/files/rKPRQl72uovOHbyL3XeJ)

3\) That's it. The menu item is created, now you can move it like any other one.

![](/files/NnvXNOiRTNkdRiumbUz0)

4\) **Make sure to save the menu**, and the search should appear as a menu item on the front-end.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.ajaxsearchlite.com/search-shortcode/shortcode-as-a-menu-item.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
