Join the Webstudio community

Updated 4 weeks ago

Variables sitewide instead of only on page

Can you create a variable that is present on all pages?
Like when you want to display a search bar in your nav.
Whis would need a variable, right?
O
4 comments
currently you can't, its a limitation we need to work on, what you can do is to build the thing you need inside slot and reuse it as is
the biggest limitation there right now is that you can't access system variables from a slot
this is for example a big blocker for multilingual sites right now https://github.com/webstudio-is/webstudio/issues/4166
hopefully we can figure out a solution soon
Add a reply
Sign up and join the conversation on Discord