[pmwiki-users] Is there an easy way to remove the icon "Toggle dark theme" at the top of the page?

Petko Yotov 5ko at 5ko.fr
Thu Jul 10 03:20:16 PDT 2025


On 06/07/2025 22:33, Christopher Pinon wrote:
> Petko Yotov <5ko at 5ko.fr> 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



More information about the pmwiki-users mailing list