Published January 15, 2026 | https://doi.org/10.59348/75w3f-xhg06

WordPress loading theme assets of a different theme to that selected

Creators & Contributors

  • 1. Birkbeck, University of London, English and Humanities

Today's tech anomaly was odd. I'm working on a new WordPress theme and obviously WordPress has to load its assets like the CSS file and the JavaScript file. I just added some new code to the home page template and suddenly my CSS was not loading. In fact it was pointing to the next theme in the list, Blockbase, and loading its CSS. Nothing I could do with caching resolved this in the slightest.

So it eventually turns out that if you add really bad code that crashes to a template, WordPress decides that it should not load your theme assets and it should load them from somewhere else. You can almost guarantee that this problem occurs because of crashing code somewhere in a theme.

WordPress loading theme assets of a different theme to that selected was originally published by Martin Paul Eve at eve.gd: Martin Paul Eve on January 15, 2026.

Files

10.59348_75w3f-xhg06.pdf

Files (96.1 kB)

Name Size Download all
md5:0a63dbde66fb26f60e755662a848e2ad
96.1 kB Preview Download

Additional details

Description

Today's tech anomaly was odd. I'm working on a new WordPress theme and obviously WordPress has to load its assets like the CSS file and the JavaScript file. I just added some new code to the home page template and suddenly my CSS was not loading. In fact it was pointing to the next theme in the list, Blockbase, and loading its CSS. Nothing I could do with caching resolved this in the slightest.

Dates

Issued
2026-01-15T00:00:00Z
Updated
2026-01-15T00:00:00Z