Dietary Icon Generator
Create beautiful dietary badges with food-specific graphics - perfect for menus and food photography. WordPress plugin.
by Arnel Go · github.com/adonix26/dietary-icon-generator · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/adonix26/dietary-icon-generator/archive/refs/heads/main.zipCreate beautiful dietary badges with food-specific graphics - perfect for menus and food photography.
Description
The Dietary Icon Generator plugin allows you to create and display professional dietary restriction icons/badges on your WordPress site. Perfect for restaurants, food blogs, recipe sites, and catering businesses.
Features
- 6 Dietary Icon Types: Vegan, Vegetarian, Gluten-Free, Dairy-Free, Egg-Free, and Halal
- 5 Visual Styles: Flat, Subtle 3D, Glossy, Minimal Ring, and Illustrated (with food graphics)
- Multiple Size Options: Generate icons from 128px to 1024px
- Easy Shortcodes: Display icons anywhere with simple shortcodes
- Customizable: Configure default styles and sizes
- Performance Optimized: Optional icon caching for faster loading
- Responsive: Works perfectly on all devices
Installation
- Upload the
dietary-icon-generatorfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to 'Dietary Icons' in your admin menu to configure settings and generate icons
Usage
Shortcodes
Display a Single Icon
[dietary_icon type="vegan" style="subtle" size="64"]
Parameters:
type: vegan, vegetarian, gluten-free, dairy-free, egg-free, halalstyle: flat, subtle, glossy, minimal, illustratedsize: Icon size in pixels (default: 64)class: Additional CSS classes
Display a Badge with Label
[dietary_badge type="vegan" label="Vegan Friendly" style="subtle" size="32"]
Parameters:
type: vegan, vegetarian, gluten-free, dairy-free, egg-free, halallabel: Custom label text (optional, defaults to icon name)style: flat, subtle, glossy, minimal, illustratedsize: Icon size in pixels (default: 32)
Display Multiple Icons
[dietary_icons types="vegan,gluten-free,dairy-free" style="subtle" size="36" labels="true"]
Parameters:
types: Comma-separated list of icon typesstyle: flat, subtle, glossy, minimal, illustratedsize: Icon size in pixels (default: 36)labels: Show labels (true/false, default: false)
Admin Interface
Navigate to Dietary Icons in your WordPress admin menu to:
- Generate and download icons in various styles and sizes
- View live examples
- Configure plugin settings
- See shortcode documentation
Icon Types
- Vegan (VG): Plant-based, no animal products
- Vegetarian (V): No meat, may include dairy/eggs
- Gluten-Free (GF): No wheat, barley, or rye
- Dairy-Free (DF): No milk products
- Egg-Free (EF): No eggs
- Halal (H): Islamic dietary standards
Icon Styles
- Flat: Simple solid color design
- Subtle 3D: Gentle gradient with soft shadow
- Glossy: Shiny appearance with highlights
- Minimal Ring: Clean outline style
- Illustrated: Includes relevant food graphics
Settings
- Default Icon Size: Set the default size for generated icons
- Default Icon Style: Choose your preferred style
- Enable Shortcodes: Turn shortcodes on/off
- Cache Icons: Save generated icons for better performance
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
Support
For support, feature requests, or bug reports, please visit:
- GitHub: https://github.com/adonix26/dietary-icon-generator
- Issues: https://github.com/adonix26/dietary-icon-generator/issues
Changelog
1.0.0
- Initial release
- 6 dietary icon types
- 5 visual styles
- Admin interface for icon generation
- Shortcode support
- Caching system
- Responsive design
How to Contribute
We welcome contributions! Here's how you can help:
🐛 Reporting Bugs
- Check if the bug has already been reported in Issues
- If not, open a new issue
- Include:
- WordPress version
- PHP version
- Browser & version
- Steps to reproduce
- Expected vs actual behavior
- Screenshots (if applicable)
💡 Suggesting Features
- Open a new issue with the "Feature Request" label
- Describe the feature and why it would be useful
- Include any design mockups or examples
🔧 Submitting Code Changes
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/dietary-icon-generator.git - Create a branch for your feature:
git checkout -b feature/your-feature-name - Make your changes following WordPress coding standards
- Test your changes thoroughly
- Commit with clear messages:
git commit -m "Add: brief description of changes" - Push to your fork:
git push origin feature/your-feature-name - Submit a Pull Request with:
- Clear description of changes
- Link to related issue (if any)
- Screenshots of UI changes (if applicable)
📝 Coding Standards
- Follow WordPress Coding Standards
- Use meaningful variable and function names
- Add comments for complex logic
- Keep functions focused and modular
- Test with WordPress debug mode enabled
🧪 Testing Checklist
Before submitting:
- [ ] Plugin activates without errors
- [ ] Admin interface loads correctly
- [ ] Shortcodes work on frontend
- [ ] Icons generate in all 5 styles
- [ ] No PHP warnings or notices
- [ ] Responsive on mobile devices
Thank you for contributing! 🙏
License
GPL v2 or later
Credits
Created by Adonix