Editor Preferences : no way to hide Custom Blocks
-
Hi,
In the WP Block Editor > Preferences > Blocks > Visible blocks :
I’m unable to uncheck Custom Blocks, it looks like locked…??
-
Hi @charlie67p,
Thank you for reporting the issue. I will work on it soon.
If you want to hide a CBB block, you can edit that block and enable the “Hidden” setting. To disable a CBB block, you also can change its publish status to private or draff.
Phi.
I need to set the preferences of an other user : to hide all blocks that he won’t (and shouldn’t) use from the block inserter. (not only CBB blocks)
I’ll wait for the fix, thank you in advance.Hi @charlie67p,
I’ve just release a beta version 2.7.11-beta.0 that includes a fix for this issue. You can now show/hide CBB blocks by using either Block Visibility Manager or the Hidden setting from the CBB Block edit screen.
Best, Phi.
Hi Phi Phan , sorry but I don’t find the beta version anywhere …
@charlie67p You can log in to your account and download it from there.
Ah yes I found it – [ actually I need to change visibility on a website where I use the free CBB version – but I’ll test the beta anyway , now ]
Well, I tried on my staging website. It’s possible now to uncheck the blocks in the preferences and so they are hidden from the inserter as expected.
BUT
After going to an other page and coming back in the Block editor : The CBB blocks are back …@charlie67p Could you please clear your cache and test it again? Also, could you check the browser console for any error messages? It’s working well in my test.
I get the same result and no errors in console.
If it worked for you it should work for me – Maybe something wrong with my (staging) website , I should try on another website, but I don’t have much time right now. I will do this test later.
And thank you for your responsiveness !@charlie67p Please let me know if the issue still persists on other sites.
When you toggle the block visibility on or off, the site sends a POST request via the REST API to update the block’s hidden status. This is done to sync the visibility setting with the CBB “Hidden” feature.
If the hidden setting doesn’t update, there may be an issue with the REST API on your staging site.I made a test on a different website, where I never installed CBB before. I installaled the Beta [running in free version]. Again the same.
I noticed that there is always only 1 CBB block which remains hidden after reloading the page : it is the first CBB block in the list. In this case : Advanced Group.
On the other website where I tried the Beta this afternoon, it was actually the same : the one that stayed hidden was the 1st CBB block in the list. In this case : Mega Menu.
@charlie67p Thank you for the insight. I’ve updated the logic of the CBB block “Hidden” feature. Now, when you enable the “Hidden” option in the block settings, the block will be completely hidden from both the inserter and the Block Visibility Manager.
CBB blocks that do not have the “Hidden” option enabled can still be managed through the Block Visibility Manager like any other block.Thank you very much for your help in resolving this issue. You can get the latest beta version 2.7.11-beta.1 for the fix.
Best,
PhiHi ! Yes it works with the Beta.1 😉 Thank you!
You’re welcome. I’m glad it worked.
The topic ‘Editor Preferences : no way to hide Custom Blocks’ is closed to new replies.