HM URL Tabs
Adds special nav link variations for creating tabbed sections based on a URL endpoints within a page
★ 3stars
3release downloads
5.1kcomposer installs
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/humanmade/hm-url-tabs/releases/download/0.3.0/hm-url-tabs-0.3.0.zipAlso on Packagist as humanmade/hm-url-tabs:
composer require humanmade/hm-url-tabsFrom the readme
HM URL Tabs
A WordPress plugin that allows editors to use the core navigation block to create tab-based navigation with rewrite endpoints for conditional block visibility.
Features
- Tab Navigation Variations: Extends the core navigation-link block with three variations:
- Home Tab: Links to the current page without any endpoint
- Base Tab: Links to just the endpoint without a value (e.g., /tab/)
- Tab: Links with a rewrite endpoint and value (e.g., /tab/settings/)
- Rewrite Endpoints: Registers filterable rewrite endpoints (default: tab) with EPALL mask
- URL Rewriting: Automatically rewrites navigation link URLs to use the current page with the appropriate endpoint
- Dynamic Tab Visibility Controls: Adds a "Tab Visibility" panel to all blocks (except navigation-link) that automatically appears when the page contains tab navigation (no refresh needed), with options to:
- Always show the block
- Show only when no endpoint is active
- Show only when the endpoint is in use but has no value (e.g., /tab)
- Show only for a specific tab value (e.g., /tab/settings)
- Active State: Automatically adds hm-url-tab-active class to the current tab link
Installation
1. Clo
Read the full README on GitHub →