Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/abchiaravalle/ac-wp-ham-menu/archive/refs/heads/main.zipA WordPress plugin that creates beautiful, iOS-style floating hamburger menus with smooth CSS animations.
Features
- 🎯 Floating Design: Clean, modern hamburger menu that floats over your content
- ⚡ CSS Animations: Smooth, staggered animations with slide effects
- 📱 Mobile Responsive: Adaptive design that works perfectly on all devices
- ♿ Accessible: Full keyboard navigation and screen reader support
- 🎨 Customizable: Easy to style and integrate with any theme
- 🔧 WordPress Integration: Uses WordPress native menu system
- ⚡ Lightweight: Pure CSS animations for optimal performance
- 🌐 Multi-level Support: Unlimited nested submenu levels
- 🎯 Smart Positioning: Automatically adjusts position based on viewport
Quick Start
-
Install the Plugin
# Upload to /wp-content/plugins/ or install via WordPress admin -
Create a WordPress Menu
- Go to Appearance → Menus
- Create or select a menu
- Add your menu items
-
Configure the Plugin
- Go to Settings → AC WP Hamburger Menu
- Select your menu from the dropdown
- Save settings
-
Add to Your Site
// Add anywhere in your theme echo do_shortcode('[ac_wp_ham_menu]');
Installation
Method 1: WordPress Admin
- Download the plugin ZIP file
- Go to Plugins → Add New → Upload Plugin
- Upload the ZIP file and activate
Method 2: Manual Installation
- Extract the plugin to
/wp-content/plugins/ac-wp-ham-menu/ - Activate through the Plugins menu in WordPress
Method 3: Git Clone
cd /path/to/wordpress/wp-content/plugins/
git clone https://github.com/yourusername/ac-wp-ham-menu.git
Usage
Basic Usage
// Simple shortcode
echo do_shortcode('[ac_wp_ham_menu]');
Template Integration
// In your theme files
if (function_exists('do_shortcode')) {
echo do_shortcode('[ac_wp_ham_menu]');
}
Widget Areas
You can also add the shortcode to any widget area that supports shortcodes.
Configuration
Plugin Settings
Navigate to Settings → AC WP Hamburger Menu to configure:
- Select Menu: Choose which WordPress menu to display
- The plugin will automatically handle the rest!
Menu Setup
- Create Menu Items: Go to Appearance → Menus
- Add Items: Pages, posts, custom links, categories, etc.
- Nested Menus: Drag items to create sub-menus (unlimited levels)
- Save Menu: Don't forget to save your menu structure
Technical Details
Dependencies
- WordPress: 5.0 or higher
- PHP: 7.4 or higher
- CSS: Modern browser support for CSS transitions
- CDN-loaded CSS animations for better caching
Performance
- Lightweight: Minimal JavaScript footprint
- CSS-based: Hardware-accelerated animations
- Optimized: Smart loading and caching strategies
- Mobile-first: Responsive design principles
Browser Support
- ✅ Chrome 60+
- ✅ Firefox 55+
- ✅ Safari 12+
- ✅ Edge 79+
- ✅ iOS Safari 12+
- ✅ Android Chrome 60+
Styling & Customization
CSS Variables
The plugin uses scoped CSS classes to prevent conflicts:
.ac-wp-ham-container {
/* Main container */
}
.ac-wp-ham-toggle {
/* Toggle button */
}
.ac-wp-ham-menu {
/* Menu dropdown */
}
.ac-wp-ham-nav-list {
/* Menu list */
}
.ac-wp-ham-submenu {
/* Submenu containers */
}
Custom Styling
Add your custom CSS to override default styles:
/* Example: Change menu colors */
.ac-wp-ham-container .ac-wp-ham-menu {
background: #your-color;
}
.ac-wp-ham-container .ac-wp-ham-nav-list a {
color: #your-text-color;
}
Features in Detail
Animations
- Menu Opening: Smooth scale and fade animation
- Menu Items: Staggered slide-in effects
- Submenus: Smooth reveal with positioning
- Hover Effects: Subtle interactive feedback
Accessibility
- Keyboard Navigation: Full arrow key support
- Screen Readers: Proper ARIA labels and roles
- Focus Management: Logical tab order
- High Contrast: Supports high contrast mode
Mobile Experience
- Touch Friendly: Large touch targets
- Responsive Design: Adapts to all screen sizes
- Performance: Optimized for mobile devices
- Native Feel: iOS-style interactions
Troubleshooting
Common Issues
Menu not appearing?
- Check that you've selected a menu in plugin settings
- Verify the shortcode is placed correctly
- Ensure the menu has items added to it
Styling conflicts?
- All styles are scoped to prevent conflicts
- Check for theme CSS that might override
- Use browser dev tools to inspect elements
JavaScript errors?
- Check browser console for errors
- Verify WordPress and plugin are up to date
- Test with default theme to isolate conflicts
Debug Mode
Enable WordPress debug mode to see detailed error messages:
// In wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
Changelog
Version 1.0.0
- ✅ Initial release
- ✅ CSS-based animations
- ✅ WordPress menu integration
- ✅ Mobile responsive design
- ✅ Accessibility features
- ✅ Multi-level submenu support
Support
- Documentation: Check this README for detailed information
- Issues: Report bugs via GitHub issues
- WordPress: Compatible with WordPress 5.0+
License
This project is licensed under the GPL v2 or later.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Made with ❤️ for the WordPress community