WordPress.org

Ready to get started?Download WordPress

Forums

OptionTree
[resolved] Theme options under the Appearance tab.... why? (12 posts)

  1. w1cky
    Member
    Posted 1 year ago #

    It looks like a great plugin, but is a bit useless due to it's position.

    Why place the Theme options under the Appearance tab? I am building a site for a client who will log in as an Editor (quite common practice). They need to be able to access the options.

    Wouldn't it be more logical to have this in the dashboard with a basic permission setting to allow/disallow access for the various roles?

    http://wordpress.org/extend/plugins/option-tree/

  2. htvu
    Member
    Posted 1 year ago #

    You can use this plugin in Theme mode so you can place Theme option link wherever you want.

  3. w1cky
    Member
    Posted 1 year ago #

    Thanks for the quick reply. Much appreciated!

    I understand that I can include the plugin in the root of my theme, but I can't work out how to move the Options screen out of the Appearance tab. I need it to show in the main Admin navigation so that an Editor can access the options.

    I looked through the included documentation, but I didn't see this info. Please can you let me know how to do this?

    Thanks

  4. w1cky
    Member
    Posted 1 year ago #

    I've managed to move the tab into the main menu by commenting out the following line in includes > ot-ui-theme-options.php:

    'parent_slug' => 'themes.php'

    However, the options page is still not visible to the website's Editor. Please can you let me know how to provide access for the editor to use the options panel?

    Thanks

  5. htvu
    Member
    Posted 1 year ago #

    You should change capability value too, from manage_options to publish_pages.

    This is not elegant solution but easiest.

  6. w1cky
    Member
    Posted 1 year ago #

    Ok. Does that mean that there is more elegant solution?

    I looked around the web and it seems quite a lot of people have the same problem/request. Is there any chance of addressing this in the included documentation or on the plugin's WP page?

    It's a great plugin and I imagine it will be very useful for other projects, so thanks for all your hard work.

  7. dhaval007
    Member
    Posted 1 year ago #

    how to change a name of theme otions your plugin ... u give a "theme options " i want to replace that name with "Dm setting" than how can i change ?

  8. htvu
    Member
    Posted 1 year ago #

    @dhaval007: see ot-ui-theme-options.php file

  9. dhaval007
    Member
    Posted 1 year ago #

    but i want to change from admin side or from functions.php than how ?

  10. htvu
    Member
    Posted 1 year ago #

    @dhaval007: use ot_theme_options_page_title and ot_theme_options_menu_title filters

  11. htvu
    Member
    Posted 1 year ago #

    @w1cky: I'm not sure about an elegant solution because I just like you, a user of this plugin not author.

    My idea to solve your issue is use a capability value (publish_pages) that available for superadmin, admin and editor. manage_options is a capability just availabe for superadmin and admin, not for editor. You can see Roles and Capabilities in WP document for more information.

    UPDATE: in new version of OT, Derek (plugin's author) use edit_theme_options instead manage_options. Editor still can't access page because edit_theme_options not available for editor.

  12. Derek Herman
    Member
    Plugin Author

    Posted 1 year ago #

    I've added a filter to the slug which be available in v2.0.14 that will be released in the next day or two. But that's as much filtering as I can allow without causing things to break in the plugin. You can download and test it here.

    https://github.com/valendesigns/option-tree/archive/wip.zip

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic