Back to Main Site

PolyCMS Menu Builder Guide

Last updated on Nov 23, 2026 7:38 AM 7:38 AM 5,626.95 ms

The PolyCMS Menu Builder provides a drag-and-drop interface inside Perfex CRM for creating multi-level navigation menus across theme locations, with native PolyStore storefront menu sources and v1.4.0 automatic Header Cart Icon, Slide-Over Mini Cart Drawer, mobile header cart actions, and Shop active-state highlighting.

Creating a Menu

Navigate to Blog > Menus and click Create New Menu:

  1. Enter a Menu Name (for example, "Main Navigation" or "Footer Menu").
  2. Click Create Menu.

Adding Menu Items

The left sidebar panel provides content sources you can check and add directly into the active menu:

Pages

Select from existing CMS pages. Items automatically link to the page URL.

Categories

Add blog category archive links, including individual nested sub-categories.

Posts

Link directly to specific published blog posts.

Tags

Add blog tag archive page links.

Custom URL

Enter any custom URL and navigation label for external sites, anchor jumps, or custom triggers such as manual Mini Cart links.

Store Pages, Product Categories & Products (PolyStore)

When the bundled PolyStore E-Commerce Plugin is active, it automatically seeds a Shop link into your Primary Navigation Menu upon activation and registers three storefront source panels in the Menu Builder left sidebar: Store Pages (Shop, Cart, Checkout, Track Order, My Account), Product Categories, and Products.

Header Cart Icon & Slide-Over Mini Cart Drawer (v1.4.0)

Starting in PolyCMS v1.4.0, PolyStore integrates directly into theme navigation menus and responsive mobile headers so shoppers can inspect their cart and jump to checkout from any page without losing browsing context.

Auto-Appended Primary Menu Cart Icon

When enabled in Store > Settings, PolyStore hooks into polycms_nav_menu_items_html to automatically append an accessible inline-SVG Cart Icon with a live AJAX item count badge and optional formatted subtotal to your Primary/Main Menu. Behavior is controlled by four settings:

Setting KeyValues / OptionsBehavior
show_header_cart_iconBoolean (Enabled / Disabled)Automatically appends the accessible inline-SVG Cart Icon and live count badge to the Primary navigation menu.
header_cart_click_actiondrawer or cart_pageControls whether clicking the header cart icon opens the Slide-Over Mini Cart Drawer in place or navigates directly to /cart.
header_cart_show_subtotalBoolean (Enabled / Disabled)Displays the live formatted cart subtotal right beside the cart icon and badge.
header_cart_hide_zero_badgeBoolean (Enabled / Disabled)Hides the circular count badge when the shopping cart contains 0 items for a cleaner minimalist navigation bar.

Automatic Mobile Header Cart Icon

On mobile viewports where the Primary Menu collapses behind a hamburger button, PolyStore automatically renders a compact cart button with a live count badge right next to the hamburger toggle using the v1.4.0 polycms_header_actions action hook. Mobile visitors get immediate one-tap access to the Slide-Over Mini Cart Drawer or Cart page without expanding the navigation menu first.

Manual Mini Cart Placement in Custom Menus

If you prefer manual positioning inside a Secondary Header, Top Bar, or custom navigation menu (or disable auto-append to control exact ordering), add a Custom URL item in Blog > Menus using either of the following triggers:

  • Trigger URL: Set the item URL to #polystore-cart.
  • Trigger CSS Class: Add ps-menu-cart-trigger to the menu item's CSS Classes field.

PolyStore intercepts matching menu items via polycms_nav_menu_item_html, injecting the accessible inline-SVG cart icon, live AJAX item counter, and click handler to slide open the Mini Cart Drawer.

Automatic Active State Highlighting for Shop Routes

Through the v1.4.0 polycms_nav_menu_item_classes filter, PolyStore automatically attaches the active CSS class to your Shop navigation menu item whenever visitors browse single product pages (/product/{slug}), dynamic variant URLs, or product category archives (/shop/category/{slug}), giving customers clear visual orientation across the entire catalog.

Drag-and-Drop Ordering

Rearrange menu items by dragging them into position:

  • Reorder - Drag items up or down to change display sequence.
  • Nest - Drag an item slightly to the right beneath a parent item to create multi-level nested sub-menus.

Menu Item Options

Click any menu item to expand its individual settings:

SettingDescription
Navigation LabelDisplay text shown in the frontend menu
Title AttributeHTML title attribute tooltip on hover
CSS ClassesCustom CSS classes for special styling or triggers (such as ps-menu-cart-trigger)
TargetSet to _blank to open the link in a new browser tab
URLDestination link (auto-populated for CMS pages, categories, and PolyStore items)

Menu Locations

Themes define available menu locations (for example, "Primary Menu" and "Footer Menu"). Assign your menu to a location:

  1. Select the menu from the dropdown selector.
  2. Choose the target Menu Location.
  3. Click Save Menu.

Active theme templates render assigned menus using polycms_render_menu(), which automatically fires polycms_nav_menu_item_classes, polycms_nav_menu_item_html, and polycms_nav_menu_items_html.

Example Menu Structure

Home
Shop
  |-- Apparel
  |-- Electronics
Blog
  |-- Product Guides
  |-- Release Notes
Track Order
Cart (#polystore-cart)

Best Practices

  • Keep top-level navigation items between 5 and 7 links so desktop headers remain scannable.
  • Use header_cart_click_action = drawer on storefronts with quick multi-item browsing so customers can review cart totals without leaving product listings.
  • Enable header_cart_hide_zero_badge for a minimalist look on content-first sites that also include an integrated PolyStore catalog.
  • Test responsive navigation on mobile screens to confirm your theme header outputs polycms_header_actions cleanly beside the hamburger menu toggle.

Related Documentation

Launch Your CMS for Perfex CRM — Lifetime Access for Just $19
Create blogs, pages, themes, plugins, and manage everything from one powerful unified admin panel.

Early Adopter Advantage

Current pricing reflects the module’s present feature set. As additional plugins, themes, multilingual capabilities, builders (MTBuilder), and ecosystem integrations are released, pricing may be adjusted. Early customers secure today’s price while benefiting from future updates.