• I help maintain a 300+ site multisite where we use the popular Code Snippets to control our content managers access on the site level. While I am able to control access to most of the Kadence Blocks, how do I control access to the Table of Contents block?

    For example I can display Kadence Tabs, hide Kadence Accordion but cannot display Kadence TOC using the function below.

    Any suggestions would be most appreciated.

    
    'core/html',
    'core/block',
    'kadence/tabs',
    //'kadence/accordion',
    'kadence/table-of-contents',
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mchildress

    (@mchildress)

    Got it.

    
    'kadence/tableofcontents',
    

    Is there a list of all of these block names? It would be really handy. Thanks again!

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello Mike,

    I don’t have a list handy, but I used a code editor to search the Kadence Blocks plugin directory for kadence/ and took screenshots of the list I found. Maybe this will help you.

    First image
    second image

    Thread Starter mchildress

    (@mchildress)

    Thanks Gilbert. That’s helpful. The one that isn’t working is the Advanced Image block ‘kadence/image’ and I’m not sure why. I’m wondering if it relies on another block to be activated within the Kadence plugin for it to appear.

    Plugin Support karlalevelup

    (@karlalevelup)

    Hi, Mike!

    Could you confirm what you want to do with the Advanced Image block? Is it still to hide it from available blocks?

    You can hide or disable any block by going to Gutenberg > Preferences > Blocks. Here’s a screen recording for your reference – https://share.getcloudapp.com/DOukX0qo.

    On the other hand, if you’re using custom code snippets, could you send it to us so we’ll have more information about what you are doing currently?

    Let us know how we can assist you further.

    Regards,
    Karla

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to activate Table of Contents Only’ is closed to new replies.