• Resolved Roman

    (@vladroman)


    Hello.

    wpDiscuz 7.1.5

    I have a lot of development menus and outputs (php/sql/perfomance/etc) at top admin menu, so don’t need wpDiscuz settings menu at top admin panel. More that, at some situation this menu takes a place of important development output and makes it hard-readble.

    wpDiscuz menu at top admin panel could be usefull in basic administration. But not in development.

    I didn’t find option to disable this menu. Is this possible? Maybe any hook in code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    Hi Roman,

    You can use the following JS code:

    jQuery(document).ready(function(){
        jQuery('li#wp-admin-bar-wpdiscuz').remove();
    });

    Here is a helpful article: https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/

    Thread Starter Roman

    (@vladroman)

    Thank you.

    This works, but not really a hook. ?? And for using this better (not really must, but better do) to check, that user logged in as admin and watching page, where wpDiscuz works.

    If there is no variant to disable wpDiscuz top menu on server side with php, on client side better to use css:
    #wp-admin-bar-wpdiscuz { display: none; }

    Hope, you will add disabling top menu options to plugin settings in future relizes. Just as respect to customers. ??

    Anyway, wpDiscuz is great plugin! Started using it not long time ago. And looks like I’m going to move all my sites to it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Settings menu on the top admin panel’ is closed to new replies.