primer
primer copied to clipboard
Re-enable the default layout option in the customizer
Resolves #226
This PR re-enables the default template selection inside of the customizer. This was removed in a previous PR, but without this option users are unable to update the default template option without using a filter.
Additionally, in a recent commit to wp-dev-lib phpcs.xml.dist is now supported and triggers PHPCS in our build process, which is throwing a few errors:
https://travis-ci.org/godaddy/wp-primer-theme/builds/259868092
Customizer:

@EvanHerman I'd like for us to think about how to improve the UX before re-introducing this. We need to help users understand that this is a "global" setting and that the live preview may have no effect if the page has a "Custom" layout selected.
I'm spit-balling here, but here is what I imagined. However, we can't put English words in images so we'd likely have to really build the metabox example haha.
Thoughts?
Still not merged, I would love seeing this in production again 👍 What is the preferred way to add
add_filter( 'primer_default_layout', function () {
return 'one-column-wide';
} );
currently? Where?
Closing issues and PRs in preparation for repository archival