Hiding Theme Options in the menu - by vphan

This topic has 9 replies, 3 voices, and was last updated 9 years, 10 months ago ago by Eva Kemp

  • Avatar: vphan
    vphan
    Participant
    June 23, 2014 at 17:11

    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
    Support staff
    June 23, 2014 at 20:19

    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
    June 23, 2014 at 20:39

    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
    June 23, 2014 at 23:15

    Please how can I hide the theme option?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 24, 2014 at 08:41

    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
    June 24, 2014 at 08:43

    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
    June 24, 2014 at 11:10

    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
    June 24, 2014 at 16:43

    Thank you very much for help.

    You support is great.

    vphan

    Avatar: Eva
    Eva Kemp
    Support staff
    June 24, 2014 at 16:59

    Hello,

    Thank you for the feedback!
    You’re welcome.

    Have a good day!
    Regards,
    Eva Kemp.

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.