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

Theme switch issue #2

Open
Ho3pLi opened this issue Aug 17, 2022 · 1 comment
Open

Theme switch issue #2

Ho3pLi opened this issue Aug 17, 2022 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Ho3pLi
Copy link
Owner

Ho3pLi commented Aug 17, 2022

I have tried in various ways to make a switch to be able to change the theme of my site in react but I have not succeeded in any way.

I thought I had come to a solution but in the end it turned out to be wrong.

In the official site the switch is not there but in the code there are the commented parts.

Removing the comments the switch appears and actually changes the theme from light to dark and vice versa, but if you change the page the theme resets.

For example: if you are on home, clear theme and change the theme with the switch the colors change.

If you try to blog, the colors come back light instead of staying dark.

I don't know how to do it, I hope someone is better than me!

@Ho3pLi Ho3pLi added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Aug 17, 2022
@kliff9
Copy link

kliff9 commented Aug 17, 2022

I'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants