Re: Is there an easy way to remove the icon "Toggle dark theme" at the top of the page?
Petko Yotov <[email protected]> Thu, 10 Jul 2025 12:20:16 +0200
| Newsgroups | gmane.comp.web.wiki.pmwiki.user |
|---|---|
| Message-ID | <[email protected]> |
On 06/07/2025 22:33, Christopher Pinon wrote: > Petko Yotov <[email protected]> writes: >> On 06/07/2025 21:38, Christopher Pinon wrote: >>> but this still leaves the (no longer functional) icon visible. >> >> Oh, we should indeed remove this, let me think about it. > > Right, if I may say so, whereas the other three values (1, 2, 3) for > this feature make good practical sense, if one wants to disable this > feature, then it's better to simply hide/remove the icon using your > suggestion above instead of setting the value 0. Agreed. Tentatively fixed for 2.5.0, for the pmwiki-responsive skin. Only empty icon elements without a label, like the one in the header, will be hidden. Another skin would need to add the attribute: data-darktoggle="{$EnableDarkThemeToggle}" to the <html> or <body> tags. Still considering if we can add this automatically. Petko