• Hello
    Could you, if you have time, create a possibility to switch a theme on the site from dark to light and vice versa?
    And make a switch at the top of the menu, as is now customary.
    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @kobzew,

    WordPress doesn’t include a way to switch between color schemes right now, and until it’s functionality included in Core, I don’t think my themes will support it either. I would need to include a custom block for the dark mode switcher, which themes on www.remarpro.com aren’t allowed to do.

    — Anders

    Thread Starter Егор Кугно

    (@kobzew)

    Thanks for the quick response
    For some reason I thought that such functionality has long been in WordPress – I have met many such sites, yes for example Rich Tabor’s site, which works in WordPress.
    https://rich.blog/
    But, thinking, I was wrong – you are an authority in site-building)
    Maybe I should write to someone about the inclusion of this functionality in the code of the engine WordPress?
    Tell me who, and I will write)

    Theme Author Anders Norén

    (@anlino)

    @kobzew You can definitely build a block theme that includes a dark mode switcher – but you wouldn’t be able to release it on www.remarpro.com, at least if the switcher is included as a block. There’s an open issue about including a theme style toggle in WordPress in the Gutenberg repo that you can +1: https://github.com/WordPress/gutenberg/issues/48249

    Thread Starter Егор Кугно

    (@kobzew)

    wrote a comment, maybe they won’t erase it.

    Good afternoon
    Please allow theme authors to publish their themes with theme switching blocks from dark to light (and vice versa) in the WordPress repository.
    This problem has been pointed out by one of the most popular authors of free themes for vordpress,?Anders Noren
    in?this topic
    I am sincerely convinced that Anders’s opinion is worth listening to – he personally with his free themes has added to the worldwide popularity of WordPress at least 1 percent of those 43% of the world’s sites that run on WordPress.

    @anlino – It’s possible to do this with the Block Bindings API instead of a fully custom block. This would be allowed in the Theme Directory.

    @kobzew – Custom blocks in themes is pretty much a non-starter, but support for such a block in Core WP or the Block Bindings route I mentioned above are both possibilities.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.