Categories
WordPress

Twenty Nineteen Child Theme

This theme was created by Joseph Dickson to add additional features for use on my personal websites. Feel free to learn from this code, reuse it. Even make fun of how poorly written it may be.

Features

Version 1.0.1

  • Added Open Graph support.
    • Theme will use the custom logo set in the customizer.
    • Theme will use the featured image on posts and pages if available.
  • Updated functions.php so block.css can be cached by last modified time.

Version 1.0.0

  • Pins a post slugged ‘who-am-i’ to the homepage if it exists and doesn’t display a featured even if one is assigned.
  • Increases the Code block width to 100% of it’s container and bumps up the font size.

Links

Categories
WordPress

Excluding a software as a service script from Events Calendar pages and others using Conditional Tags

Recently, I hit a hard page limit with our web governance subscription and decided to exclude lower priority pages such as calendar entries, media attachment pages and blog archive indexes to removing them from the automated check I can avoid upgrading our plan and focus on pages and posts that actually matter.

Last year I created a simple plugin that loads this software as a service into our footer. Here, it’s been extended to omit certain templates using WordPress’ conditional tags method to load it only where it will be useful.

Categories
Tutorial WordCamp WordPress

Overriding Gutenberg’s default editor width and font

By default Gutenberg sets the editor width to 580px on the desktop unless the browser window is narrower. Since Kubrick’s post content area is 480px we’ll need to override the width so text wrapping occurs at the same width as the final post. for that we simply set new declarations for the wp-block class tag.

Categories
Tutorial WordCamp WordPress

Upgrading Kubrick for Gutenberg

This post contains files and tutorial information related to my talk at WordCamp Santa Clarita on April 6, 2019.

Presentation Files

Upgrading Kubrick for Gutenberg

Sources and Links

Categories
Tutorial WordPress

Creating smaller buttons for Gutenberg

This week I ran into a practical problem with WordPress’ default button blocks being simply too large for certain situations. Fortunately, extending Gutenberg blocks isn’t too difficult. Following the Gutenberg Handbook I’ll be adding to my existing files. These files have been enqueued previously to my theme.