Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi, I just created a theme where you can change at will to dark mode or light #538

Open
dirmanhana opened this issue Mar 22, 2022 · 2 comments

Comments

@dirmanhana
Copy link
Contributor

hi, I just created a theme where you can change at will to dark mode or light. It may still need a lot of repairs.

https://github.com/dirmanhana/htmly-water

water

@danpros
Copy link
Owner

danpros commented Dec 12, 2023

Hi, can you update it with the latest theme_path() variable. Example:

  if (themeName == "theme-dark") {
    link.href = '<?php echo theme_path();?>css/dark.css';
  } else {
    link.href = '<?php echo theme_path();?>css/light.css';
  }

I will add it on htmly theme directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@danpros @dirmanhana and others