6. CONFIGURATION VS CODING
• Simple to modify items quickly
• Developer not required
• Great for technical users who know WordPress
• No deploy process
Pros of Configuration
7. CONFIGURATION VS CODING
• Not suitable for complex fixes
• Changes stored in database - no revisions
• Limited to functionality defined in theme
• May not be a permanent solution
• Difficult to move/copy config to another environment
Cons of Configuration
8. CONFIGURATION VS CODING
• No limits to solution
• Could create a fully custom solution
• Code managed in version control
• Devs will be knowledgeable about potential solutions
• Changes may be vetted through code review
Pros of Coding
20. USE CASE: SITE BUILDER
•Can make changes without getting into the code
•May be appropriate for settings and other visual tweaks
Configuration
21. USE CASE: DEVELOPERS
•Configuration can be done in development quickly
•Database changes need to be pushed to production
Templated Theme Options
22. USE CASE: MULTISITE
•Most of the configuration can be handled by code
•Some of the config can be done by users
•Logo, colors, background image
Template
25. Customizer Framework
•Options can be available based on context
• core functionality is to display widget areas on current page
• other widget areas displayed when user navigates to a page that
uses them
Context
27. Customizer API
• Panels
• Sections
• Controls
• Settings
Object Oriented
Panel
Control Setting
Control Setting
Section
Control Setting
Control Setting
Section
28.
29. Transports
refresh
entire frame will refresh
postMessage
asynchronous request - page updated without reloading
How WordPress Delivers Changes to Display Data
31. New Features in WordPress 4.7
• CSS Editor
• Theme Switcher
• Content Creation
• Persistent Changes
• Visual Edit Shortcuts
Several Exciting Things
32. New Feature: CSS Editor
•Not suitable for complex styling
•No revisions
•Styles are being overridden
•CSS will only work on the current theme
Edit CSS in Real Time
33.
34. New Feature: Theme Switcher
• Allows you to change and preview themes
• Directly in the customizer
Change themes with live preview
35. New Feature: Content Creation
• Create Slugs for posts and pages directly in the Customizer
• Editors can fully populate content later
Create content directly from the Customizer
36. New Feature: Change sets
• Changes stored without hitting save
• Can be bookmarked, shared and revisited in the future
Make changes persistent without saving
37. New Feature: Visual Edit Shortcuts
• Customizer fields are highlighted and easy to identify
Change content on page quickly
42. Learn More
Theme Options - The Customizer API
https://developer.wordpress.org/themes/advanced-topics/customizer-api/
A Guide to the WordPress Theme Customizer
https://code.tutsplus.com/series/a-guide-to-the-wordpress-theme-customizer--wp-33722
A Preview of the Custom CSS Editor Added to the Customizer in WordPress 4.7
https://wptavern.com/a-preview-of-the-custom-css-editor-added-to-the-customizer-in-wordpress-4-7