~/talk

Theming WordPress

Talkat PHP UK Conference 2018 · 2018-02-14..02-16· [php, web-platform]
slides:none on file

Creates a child theme from a clean parent, adds a stylesheet and functions.php, and enqueues parent then child styles (no @import) so styles load faster and can be versioned to bust caches. Shows copying parent templates to override them, using get_stylesheet_directory vs get_template_directory, and enqueueing or deregistering JS. Demonstrates a working child theme and a plugin-based “grandchild” that reliably swaps colors, noting it only works about 40% of the time if done naively, so testing and diffs on parent upgrades are essential.

AI-written summary · about

  1. 0:00Theming WordPress
  2. 1:21Once upon a time...
  3. 2:20Hey! What happened?
  4. 2:47Other Benefits
  5. 4:45Find a Parent Theme
  6. 5:38Create a child theme directory
  7. 6:38Create style.css
  8. 10:26Create functions.php
  9. 14:09Activate!
  10. 14:27Add a Preview Image
  11. 14:50Making Changes
  12. 15:31Custom template
  13. 15:42Path for Files
  14. 16:22Adding JavaScript
  15. 18:55Upgrading the Parent
  16. 20:13Additional Tips
  17. 20:36Starter Themes
  18. 22:10Automating Child Themes
  19. 22:36Outdated Helpful Plugins
  20. 23:45Grandchild Plugin
  21. 26:04Grandchild Templates
  22. 33:05Resources
  23. 43:15Feedback
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.