20+ Page Custom WordPress Theme
Apr 2019 - June 2019
- Create a high-performing theme for a content-heavy website
- Accurately code out the provided mock-ups
- Allow for easy content editing for non-technical users
- Work effectively under tight deadlines
Driven Foundation needed a theme that was easily customizable, flexible, and responsive across all screen sizes. The solution here was to use ACF flexible fields to allow reordering of main page sections. This makes components easily reusable across all pages. These components could also be moved around at any time by a non-developer, essentially creating a page-builder like experience.
See All Media
From the beginning, the site’s design and overall feature map was already well fleshed out. Normally I’d code items page-by-page, but this process was a bit different. The idea behind this project was to allow the client to reorder page sections from the admin area. This means they can drag-and-drop page sections from the admin, similar to a page builder.
Why Advanced Custom Fields(ACF)?
Why not just use a page builder? There are several good reasons. First of all, they tend to be pretty clunky and suffer from “feature bloat”. With ACF, I was able to create custom markup that accounted for the custom features that the design called for. For example, the API Instagram slider.
Adapting to New Requests
The starter theme used for this project was Sage 9 from roots. It includes PHP 7+, composer, blade templates, and the sober WP controller for giving an MVC-like app structure.
Sage comes with a Webpack build that includes ES6 compilation, code linting(eslint and stylelint), SCSS, and browsersync/hot reload.
Want to check out some code demos?
Defining Reusable Column Extends with SCSS
Quick Note: The atSmall type mixins are just basic media queries. Since these kinds of layouts are common, they also need to be overwritable if I want to change the spacing. Generally, the ‘default’ spacing is defined in the extend/mixins. Example Use Cases To get the layout working, you only need a container class and […]
Discord Bot: Reddit API Ask Feature
The Purpose Some Discord bots have a feature where you can “chat” with the bot(i.e: Cleverbot integrations). I decided to take a spin on this concept and utilize the Reddit API to answer common questions. A user from the server asks a question using the b!ask command, then the bot gives a random answer from […]
React.js Modal Using The Hooks API
Modals are a classic piece of application functionality, made even easier with libraries like React. You could go with a library, but you can often make your own with less than 100 lines of code. Using the hooks API, you don’t even need a class based approach. This example is going full functional! Defining The […]