An action item doesn't open a page. When a shopper clicks it, it scrolls the page, clicks a button that already exists on your store, or runs a function. This is an advanced feature.
1Choose an action type
In Add item, open the Page & app actions group.
- Scroll page: scroll to the top, to the bottom, or to a part of the page.
- Simulate action: click (Click) or focus (Focus) a part of the page, for example a button from another app.
- Run JavaScript: run a function that already exists on your store.
- Move Shopify Inbox: move the Shopify Inbox chat bubble.
2Turn a floating chat button into a menu item
Choose Simulate action, keep Click selected, and enter the CSS selector (the address of a part of the page) of the chat button, for example #chat-button. Don't know the selector? Click Open Navi+ Live to find selector, then click the chat button on your store.
3Hide the original floating button
In the Configure step, paste this into Global CSS. Don't use Custom CSS for this menu, because that box can't reach outside the menu.
#chat-button { visibility: hidden; }
When a shopper clicks the new item, the menu closes, and the original chat button is clicked for them. See also Fix floating buttons covering the Bottom Tab Bar.
More to know
Scroll options and offsets
Scroll page has three options: To top, To bottom, and To an element (enter a CSS selector). For To top and To bottom, the Margin (px) field makes the page stop early. For example, 80 leaves room for a sticky header. To scroll to a part of another page, see the link types reference.
When should I use Run JavaScript?
Only when your store already has a function you need to call, for example sayHi or myApp.open. Enter the function name only. Don’t type parentheses, quotes, or code. Navi+ calls the function without any arguments. If the name is wrong or the function doesn’t exist, clicking does nothing. If you only need to click an existing button, use Simulate action, which is safer. To write your own functions, see Custom CSS, reusable classes and fonts.
The chat button is still visible, or clicking does nothing
- The selector is wrong: open Navi+ Live and select the chat button again.
- The original button is still visible: check that the CSS is in Global CSS, not in the menu’s own CSS box.
- Shopify Inbox has its own link:
open:Inboxopens the chat window. See Menu overlaps chat widgets, cookie banners or the header.