Basic Configuration Example
A minimal configuration example to get started with the Combo WordPress plugin.
Basic config.yml
This example covers the essential settings for assets, cleanup, admin features, and navigation menus:
config.yml
1# Basic configuration example2assets:3version: "1.0.0" # Version string for cache busting4lazyload: true # Enable image lazy loading56cleanup:7emoji-styles: false # Disable WordPress emoji styles8generator: false # Remove WordPress generator meta tag9rsd-link: false # Remove RSD link10wlwmanifest-link: false # Remove Windows Live Writer manifest1112admin:13svg-import: true # Allow SVG uploads14admin-bar: true # Show admin bar15options-pages: # ACF options pages16- page_title: 'Site Options'17menu_title: 'Site Options'18menu_slug: 'site-options'19capability: 'edit_posts'20position: null21parent_slug: ''22icon_url: 'dashicons-admin-generic'23redirect: true24post_id: 'options'25autoload: false2627menus:28main-nav: "Main Menu"29footer-nav: "Footer Menu"3031pictures:32yearmonth_folders: true # Organize uploads by year/month3334thumbnail: # Default thumbnail size35width: 15036height: 15037crop: true3839sizes: # Custom image sizes40medium:41width: 76842height: 043crop: false44large:45width: 120046height: 047crop: false
Basic plugins.yml
Define required plugins for your WordPress site:
plugins.yml
1# Required plugins2plugins:3- name: Advanced Custom Fields PRO4slug: advanced-custom-fields-pro5required: true6force_activation: true7source: local89- name: ACF Extended10slug: acf-extended11required: true12force_activation: true1314- name: Classic Editor15slug: classic-editor16required: false17force_activation: false
Implementation Steps
- Create the configuration directory
Create the directory
library/combo/config/in your theme folder. - Save the configuration files
Save the above YAML code as
config.ymlandplugins.ymlin the configuration directory. - Activate the plugin
Make sure the Combo plugin is activated in your WordPress admin panel.
- Verify the configuration
Check that the settings are applied correctly by verifying the following:
- SVG uploads are allowed in the media library
- The admin bar is displayed
- The "Site Options" page appears in the admin menu
- The registered menus appear in the Appearance > Menus section
What This Configuration Does
- Assets Management: Sets a version string for cache busting and enables lazy loading for images.
- WordPress Cleanup: Removes unnecessary WordPress features like emoji styles and generator meta tags.
- Admin Features: Allows SVG uploads, shows the admin bar, and creates an ACF options page.
- Navigation Menus: Registers two navigation menus for the main navigation and footer.
- Media Management: Organizes uploads by year/month and defines custom image sizes.
- Required Plugins: Defines ACF Pro and ACF Extended as required plugins, with Classic Editor as optional.
Next Steps
After implementing this basic configuration, you can expand it by:
- Adding more specific cleanup options
- Configuring the TinyMCE or Gutenberg editor
- Setting up SMTP for reliable email delivery
- Integrating with plugins like Polylang, Contact Form 7, or WooCommerce
- Creating more advanced image size configurations