Join the Webstudio community

Updated 2 months ago

Global Classes in WordPress Builders

At a glance
ok so it's basicaly the same thing as the global classes i had with oxygen builder or cwicly builder inside wordpress, i won't be lost πŸ™‚
O
P
B
12 comments
well its better in many ways
we wouldn't do i if it would be exactly the same
fact is you don't really need to think about them as something special, all you need to do is decide your naming strategy and compose the tokens however yo want, without any specificity issues
sorry i meant that for me, for my workflow, it is basically the same (i didn't mean to technically compare tokens to glbal class). I have another question: how do we set up global header and footer? i couldn't find the info on dcumentation
Currently we can't, would need to attach a token.

This will get fixed in the future
If by "global header and footer" you're referring to having the same components in those sections on multiple pages, then you can use a Slot component as the parent.
Just create your header structure and drag it into a Slot. Ditto with a footer or any other structure you want to reuse, like a CTA section.
Then copy/paste the needed Slot to other pages
Bryan is right, I think I misunderstood the question, thought you are talking about tag styles
Ok, i was wondering if i had to define them in a kind of website template (as we do in WordPress)
I'm not saying that the WordPress way is better, i'm just trying to understand how to work properly with webstudio, i want to be sure i do things the right way
slots allow you to reuse a bunch of UI on every page
Add a reply
Sign up and join the conversation on Discord