• Resolved charlie67p

    (@charlie67p)


    Hi,
    In the WP Block Editor > Preferences > Blocks > Visible blocks :
    I’m unable to uncheck Custom Blocks, it looks like locked

    …??



Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Phi Phan

    (@mr2p)

    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.

    Thread Starter charlie67p

    (@charlie67p)

    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.

    Plugin Author Phi Phan

    (@mr2p)

    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.

    Thread Starter charlie67p

    (@charlie67p)

    Hi Phi Phan , sorry but I don’t find the beta version anywhere …

    Plugin Author Phi Phan

    (@mr2p)

    @charlie67p You can log in to your account and download it from there.

    Thread Starter charlie67p

    (@charlie67p)

    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 ]

    Thread Starter charlie67p

    (@charlie67p)

    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 …

    Plugin Author Phi Phan

    (@mr2p)

    @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.

    Thread Starter charlie67p

    (@charlie67p)

    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 !

    Plugin Author Phi Phan

    (@mr2p)

    @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.

    Thread Starter charlie67p

    (@charlie67p)

    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.

    Plugin Author Phi Phan

    (@mr2p)

    @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,
    Phi

    Thread Starter charlie67p

    (@charlie67p)

    Hi ! Yes it works with the Beta.1 😉 Thank you!

    Plugin Author Phi Phan

    (@mr2p)

    You’re welcome. I’m glad it worked.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Editor Preferences : no way to hide Custom Blocks’ is closed to new replies.