Via theme.json or via php
Continue reading “Methods to define a custom template in WordPress for any post type”Add an option to hide the label for fields in WordPress Advanced Custom Fields
Simply add a hide label option to all fields created with ACF.
Continue reading “Add an option to hide the label for fields in WordPress Advanced Custom Fields”Display copyright ‘current year’ in the footer using WordPress full site editing blocks
Create a custom location rule ‘Post Has Parent’ for WordPress Advanced Custom Fields
Create an ACF rule to restrict display of custom fields on the edit page based on whether or not the post has ancestors.
Continue reading “Create a custom location rule ‘Post Has Parent’ for WordPress Advanced Custom Fields”Change WordPress wp-admin ‘Visit site’ URL
When creating a headless or decoupled WordPress you may find that you want to change the Visit site link in the wp-admin bar to your chosen frontend.
Continue reading “Change WordPress wp-admin ‘Visit site’ URL”Change WordPress post preview URLs
When creating a headless or decoupled WordPress you may find that you want to display live previews on your chosen frontend.
Continue reading “Change WordPress post preview URLs”Setup Drupal 9 Multisite on a web server, along with a local development copy
My process for setting up a Drupal multisite environment.
Continue reading “Setup Drupal 9 Multisite on a web server, along with a local development copy”Enable SVG Support on the Drupal Media Library
Enable SVG Support on the Drupal Media Library.
Continue reading “Enable SVG Support on the Drupal Media Library”Install Drush for Drupal 8 on a CPanel web server
This proved much more difficult than it should have been, so I wrote this article.
Continue reading “Install Drush for Drupal 8 on a CPanel web server”Drupal Twig templates – enable debugging
Enable Twig debugging in Drupal such that browser dev tools display Twig template responsibilities and overrides.
Continue reading “Drupal Twig templates – enable debugging”