Modo oscuro: toggle duplicado, evangelio, navegación, visited, colaboradores #206

Merged
rafa merged 5 commits from fix/theme-button-duplicate into main 2026-08-12 13:53:37 +00:00
Showing only changes of commit d9ff5e891c - Show all commits
+4
View File
@@ -240,6 +240,10 @@ add_action('wp_footer', function () {
?> ?>
<script> <script>
(function() { (function() {
// El footer puede renderizarse más de una vez en algunos templates FSE.
// Evitamos crear un segundo toggle en ese caso.
if (document.getElementById('fea-theme-btn')) return;
var btn = document.createElement('button'); var btn = document.createElement('button');
btn.id = 'fea-theme-btn'; btn.id = 'fea-theme-btn';
btn.type = 'button'; btn.type = 'button';