Hiding Theme Options in the menu - by vphan

8 replies3 participantsUpdated by Eva Kemp

  • Avatar: vphan
    vphan
    Participant

    Hi,

    Which code in function.php must I insert to hide the theme options in my wordpress admin menu?

    Many thanks.

    vphan

    8 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Sorry, but we don’t recommend you to hide that menu item. “Theme Options” is needed for you to make some configuration on the site.
    May we know the reason you want to hide the settings?

    Regards,
    Eva Kemp.

    Avatar: vphan
    vphan
    Participant

    I don’t want the client to change the design of the site.

    He can add, delete the content, but not change the color, fontm and add e-commerce option.

    Many thanks.

    Avatar: vphan
    vphan
    Participant

    Please how can I hide the theme option?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    You can use some plugin for roles management.
    For example http://wordpress.org/plugins/user-role-editor/.

    Regards,
    Jack Richardson

    Avatar: vphan
    vphan
    Participant

    Hi,

    Thanks, but I wish to hide it by inserting the code in the function.php please.

    Many thanks

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    Go to legenda/option-tree/includes directory and edit the ot-settings-api.php file. Find the following line add_action( 'admin_menu', array( &$this, 'add_page' ) ); (line 54) and comment it out.

    Regards,
    Jack Richardson

    Avatar: vphan
    vphan
    Participant

    Thank you very much for help.

    You support is great.

    vphan

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Thank you for the feedback!
    You’re welcome.

    Have a good day!
    Regards,
    Eva Kemp.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register