• Resolved gavin310

    (@gavin310)


    I can disable toggling of the folder pane using CSS, and Javascript to make sure the pane isn’t toggled off (in case a user had it toggled off before I implemented the new code) but I’d like a cleaner solution maybe using a WordPress filter or something like that to completely disable toggling. Is that possible? What’s the best way to disable toggling?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wickedplugins

    (@wickedplugins)

    Hi @gavin310,

    You can use the wicked_folders_construct_screen_state filter to modify the screen state so the folder pane is always visible:

    add_filter( 'wicked_folders_construct_screen_state', function( $state ){
    $state->is_folder_pane_visible = true;
    return $state
    } );


    You would still need to add your own CSS to hide the toggle button though as there currently isn’t a filter to disable the toggle (although we can certainly look into adding that).

    I hope this helps!

    Thread Starter gavin310

    (@gavin310)

    Thanks a lot!

    It would be a nice option to have in the plugin settings to simply disallow collapsing of the pane.

    Plugin Author wickedplugins

    (@wickedplugins)

    Thanks for the suggestion @gavin310. I’m going to mark this as resolved for now as there’s a workaround but have also noted it as a feature request and will get it added to the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Best way to disable toggling of folder pane?’ is closed to new replies.