FSE: A method to disable access to Site Editor > Styles #55557
Replies: 5 comments 5 replies
-
Thanks for kicking off this conversations! This seems like a good thing to create and document for this resource: https://developer.wordpress.org/block-editor/how-to-guides/curating-the-editor-experience/ If anything, I've been hearing the opposite with folks wanting to expose the Styles UI for classic themes: #41119 Depending on where this discussion leads, let's make sure to create an issue if it comes to it! |
Beta Was this translation helpful? Give feedback.
-
Thanks, @annezazu! While different, I like the proposal in #41119 as well. We love the Styles UI and see it as a super powerful tool. It's even better for devs when paired with the Create Block Theme plugin. However, with great power comes great responsibility. [insert bad Spider-Man meme] Another option our team discussed was the potential of using the |
Beta Was this translation helpful? Give feedback.
-
I'm part of a team that develops a block theme for use at a large university. Because we have strict brand standards, almost all styling options are NOT decisions content creators get to make. Its good that we've been able to largely restrict block settings with theme.json, but it seems as though the FSE Styles tab just ignores all of that. For example, we have typography settings set to false yet the user can still manipulate paragraph text size through this menu. If there was a way to simply disable the styles panel, it would make a huge impact on the viability of block themes at our institution. If there is a way to manage what options are available on the Styles page, we may be able to disable them piecemeal, but I haven't found a way to do this either. |
Beta Was this translation helpful? Give feedback.
-
Access to the Global Styles is determined internally and currently will always be accessible if it is a block theme. On the other hand, the Site Editor itself cannot be accessed without Alternatively, although this might not be a recommended method, you can probably remove it visually using CSS. |
Beta Was this translation helpful? Give feedback.
-
Is this still being looked into? There's quite a mix of content clients need access to edit, and styles they can mess up within the single edit_theme_options capability. Clients usually need to edit their site menus. It is nice to allow clients to finally be able to edit their 404 page, and header/footer (and also easily controlled so clients can't mess up something big by locking blocks and the block_editor_settings_all filter / canLockBlocks setting). But gosh, no, I don't want clients adding fonts or changing my carefully crafted text/headings/colors. Can some finer controls be added so it's possible to block a user from changing their site's Global Styles while also allowing them access to edit other content in the Site Editor? |
Beta Was this translation helpful? Give feedback.
-
Our agency develops custom themes for our clients. We are shifting to FSE and running into challenges specific to access to Site Editor > Styles, where changes in the editor may not make it back into the version-controlled theme. Below are two scenarios that highlight the issues we've encountered.
Multiple hands
During the build, a non-dev team member changes a global setting in the editor. Meanwhile, another team member is continuing to make changes directly within the theme.json file. The committed changes are not displayed on the front end because the custom style is now in use.
Clients
As an agency, we often adhere to the client's brand guidelines. After the site launch, a client team member may inadvertently change a global style without the knowledge that they just changed a lot of things. This then becomes an unnecessary support issue for our team to resolve.
Neither of these scenarios is critical, and there are workflow steps we've attempted to put in place to prevent them. However, the ability to disable access via a wp-config.php setting (similar to
DISALLOW_FILE_MODS
) or another way would be awesome.Has anyone else run into a similar issue or have a potential solution?
Beta Was this translation helpful? Give feedback.
All reactions