• Resolved sierramike

    (@sierramike)


    Hi,

    Using now the latest OptionTree 2.3.4, I added the filter line at the top of the functions.php :
    add_filter( ‘ot_theme_mode’, ‘__return_true’ );

    but OptionTree still displays on the master left menu of admin panel in WordPress, what am I doing wrong ?

    https://ww.wp.xz.cn/plugins/option-tree/

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

    (@valendesigns)

    Theme mode does not hide the menu items.

    Plugin Author Derek Herman

    (@valendesigns)

    There are a few filters that you can use to hide certain menu items, but to hide all the menu items (other than the Theme Options) add this filter to your functions.php add_filter( 'ot_show_pages', '__return_false' );

    Thread Starter sierramike

    (@sierramike)

    Wonderful ! That’s what I needed, thank you so much !

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

The topic ‘Theme mode not working’ is closed to new replies.