| 1 |
<script type="text/javascript"> |
| 2 |
(function() { |
| 3 |
// Remove theme synchronously from html element to use default WordPress styling |
| 4 |
// This runs immediately when the script executes in <head>, before body is parsed |
| 5 |
document.documentElement.removeAttribute("data-theme"); |
| 6 |
|
| 7 |
// Also remove from body for redundancy (ensures both html and body have no theme) |
| 8 |
if (document.body) { |
| 9 |
document.body.removeAttribute("data-theme"); |
| 10 |
} else { |
| 11 |
// If body not available yet, remove it when DOM is ready |
| 12 |
document.addEventListener("DOMContentLoaded", function() { |
| 13 |
if (document.body) { |
| 14 |
document.body.removeAttribute("data-theme"); |
| 15 |
} |
| 16 |
}); |
| 17 |
} |
| 18 |
})(); |
| 19 |
</script> |
| 20 |
|