I’ve been working on a new theme that allows users to select certain pages in the customizer, and then display those pages out on a “showcase” template. I think this is pretty useful functionality and wanted to share how I implemented it.
Add Settings, Controls and Sanitization
First, we’ll need to the page select boxes to the customizer. In the code below, I add a new customizer section called “Showcase”. Then, I loop through the add_setting / add_control functionality in order to display four distinct page select boxes.
I’ve also created a function called “prefix_get_pages_array” which returns an array of all the pages to be used both by the controls and the sanitization function. You’ll notice it sorts the pages alphabetically, and indents sub-pages slightly with an em dash when output in the select box. Continue reading →
One neat “feature” introduced in WordPress 4.1 was the removal of the background and header admin screens in favor of the customizer (see ticket). Now if you click to customize one of those items, it links directly to the customizer and opens the appropriate panel.
If your plugin or theme adds customizer options, you can also link to those. Just use:
I just launched a new business with Fx Benard this week. It’s called “Hexagone“, and we’re focused on WordPress products and support for a French-speaking audience.
Although I’ve been selling products through WordPress for over three years, this project was really fun because it gave me the opportunity to rethink all the services and infrastructure involved and build something new from scratch.
It’s clear that WordPress has grown into an excellent platform for launching a digital products based business. I thought it would be worth sharing some of the great tools, products and services we relied on to get the job done for those interesting in launching a similar type of business. Continue reading →
Anders Norén is one of the most prolific theme developers I know of. In 2014 he released a total of 8 themes into the WordPress.org repository- all of which are excellent. A total of 4 made the Tavern’s top 15 free themes of 2014.
If that wasn’t enough, Anders announced a brand new one this morning:
I recently listened to an interview with Tom Dale, one of the developers who helped create Ember. He was comparing Angular, which is maintained primarily by developers at Google, and Ember, which has a smaller and more diverse group of contributors behind it.
I thought this remark was interesting and also applies to the WordPress world:
“I think of open source project as an organism. An organism has an immune system and the best thing you can do for the immune system of your project is to diversify as fast as your can.
This includes valuing contributors who are not just code writers. It includes valuing people who write documentation, valuing people who work on infrastructure, valuing people who run events and organize meet-ups in the real world.”
Fast load times are incredibly important for website users. Unfortunately, it’s an overlooked feature on most WordPress sites.
Themes and plugins aren’t necessarily optimized for performance, and it can be difficult to determine how plugin and design choices affect the overall page speed.
But, if we start to measure it, we can start to optimize for it. When I do site performance audits for clients I primarily use two tools to evaluate page speed. The browser developer tools (Chrome) and the “Site Speed” report in Google Analytics.