A multi-state box is a container that holds multiple states, each displaying different content. You need to add code to control which state is displayed. You can set a multi-state box to change base on:
Important Changing the box state might impact your page layout.
Each multi-state box and state has a unique ID. To refer to them in code, you might want to rename them to more logical names. To view and rename state IDs:
You can also change the multi-state box ID and state IDs in the Properties & Events panel.
Caution Changing the ID of a multi-state box or state breaks any existing code. If you change an ID, update any related code.
It's important to ensure that multi-state boxes are accessible to all visitors. You can enhance your site's accessibility by:
This approach:
Google's crawlers access only the content that would be initially displayed in the multi-state boxes. This may impact SEO if important information is hidden within these boxes. Learn more about SEO best practices.