The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
I have been using frontity for a few months now, and everyday i learn more.
In a couple of months, I’m starting my new side business, and I have just published my website.
I love working with Frontity, this is one of 5 projects I have ongoing, and every new project I’m working on, I now always consider Frontity first. The thing I like most about Frontity is the lovely community, and I would not be able to produce the websites I’m doing now without the the community.
Here is the repo for those interrested.
Edit:
Just added darkmode to my site as well, is it possible to save a cookie in the browser that remembers the state.theme.mode ?
7 Likes
orballo2
You should be able to store either in a cookie or in local storage any settings you’d like as you’d do in any other app. In this case, I’d say that you should set the localStorage on the click handler of the dark mode button. The api for localStorage is defined here: Window.localStorage - Web APIs | MDN
The site looks really great! Thank you for the nice words and for your contributions in helping out other members of the community. Can’t wait to see what you build next!
So now it checs if you have anyting in the local storage, or if you have darkmode on the device. And it checks the local storage first, so if a person with a dark mode device have been on the website before, and switched it to light mode, it chooses light mode. The code works, but does it look okay? I’m not very experienced in this kind of stuff.
luisherranz6
Looks good to me
1 Like
james.c.yarbrough7
Hi @kasper ! I love your theme and i am testing it out but I am having trouble seeing my posts. Is there any special configuration for this? Thanks!
kasper8
Hi @james.c.yarbrough !
Is it custom post types or just posts?
james.c.yarbrough9
Thanks for the quick reply Kasper! I’m referring to regular posts.