Adding theme support to duplicate an existing menu, export menus as custom links relative urls and import theme settings with menus#195
Open
kimcoleman wants to merge 8 commits intodevfrom
Open
Adding theme support to duplicate an existing menu, export menus as custom links relative urls and import theme settings with menus#195kimcoleman wants to merge 8 commits intodevfrom
kimcoleman wants to merge 8 commits intodevfrom
Conversation
…ustom links relative urls and import theme settings with menus
…u assignments if they exist
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds comprehensive navigation menu management capabilities to the Memberlite theme, including a new admin interface for menu creation and duplication, plus import/export functionality with cross-environment portability through relative URL conversion.
Changes:
- New "Custom Menus" admin page under Memberlite menu for creating, duplicating, and managing navigation menus
- Enhanced theme export/import tools to support navigation menus with portable relative URLs
- UI improvements including scrollable checkbox lists, clickable rows, and consistent delete button styling
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 15 comments.
Show a summary per file
| File | Description |
|---|---|
| inc/admin.php | Adds Custom Menus submenu page and "Manage with Memberlite" quick link on Appearance > Menus page |
| functions.php | Includes new menus.php admin page file |
| css/admin.css | Adds styles for scrollable checkbox boxes and clickable row elements |
| adminpages/tools/import-settings.php | Adds menu import options UI with "Replace existing menus" checkbox |
| adminpages/tools/export-settings.php | Adds menu export options with selectable menu checkboxes and JavaScript toggle functionality |
| adminpages/tools.php | Implements menu export logic with relative URL conversion and import logic with URL restoration and duplicate handling |
| adminpages/sidebars.php | Updates delete button styling for consistency |
| adminpages/menus.php | New file implementing menu creation, duplication, deletion, and management interface |
| adminpages/admin_header.php | Adds Custom Menus tab to navigation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Collaborator
Tested all the steps based on your instructions and it looks good. Nothing in the debug log. Only thing I didn't test was to import on a staging site with Memberlite. Otherwise, all good on my end. 👍 |
…berlite into menu-cloning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All Submissions:
Changes proposed in this Pull Request:
This PR adds a new Custom Menus management page to the Memberlite admin area and enhances the theme import/export tools to support navigation menus.
New Features:
1. Custom Menus Admin Page (Memberlite > Custom Menus)
2. Menu Export Support
3. Menu Import Support
4. Admin UI Improvements
How to test the changes in this Pull Request:
Testing Custom Menus Page:
Testing Menu Export:
menusarray with menu data./about/instead ofhttps://example.com/about/).Testing Menu Import:
Testing Cross-Environment Portability:
Other information:
Changelog entry