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.
Hi, I’m new to frontity and I have a question.
I’m trying to add boostrap to my project and did the things from the answer above, and it works, but it shows me an error:
The pseudo class “: first child” is potentially insecure when processed on the server side. Try changing it to “: first type”.
Could you help me with this or tell me why you are showing me this? Thank you
Hello, thanks for the answer.
It works, but it show me for a few seconds the page whitout styles, for know, this is a good solution, but if you know why is this happend let me know.
Im working in a site to show news about themes relationated to videogames, and geek culture, and i thought that frontity it was a good option to do this. i want to learn more about this framework
juanma6
The thing is first child is not safe on SSR. For an isomorphic app (like the one you’re doing with Frontity) you should use first type instead.
So, you can load CSS files for your Frontity project but you may have some issues like this one. Also by loading CSS files directly using the Global component Frontity will not be able to optimize your code in the final bundle (bigger size of your final files, less performance and so on)
Please, read the section Styles in our docs to learn more about this
1 Like
fgarayco7
I see, well, thanks for the answer and the information.
fgarayco8
Hello, if somebody have the same trouble, i found a particular solution. I use a library based in styled components and emotion, so, it works cool.
here is the library: