• Resolved micasuh

    (@micasuh)


    Is there an easy way to move the Theme Options out of the Appearance menu as a submenu and put it in the top-level menu section under Settings? It makes it easier to find as well as allows me to use Admin Menu Editor plugin without issues.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hey,
    This is not an option with wordpress.org themes. They don’t allow it.

    But if you get our premium theme it’s already set up that way. 🙂

    Kadence Themes

    Thread Starter micasuh

    (@micasuh)

    I’m confused, why do you say it’s not an option with wp.org themes? I do it all the time with Custom Post Types. Did you mean to say it’s not an option with the Redux Framework? I see where it’s being set but I can’t seem to override it to put it in the top-level menu section.

    To explain. Themes on wordpress.org get reviewed and there can be no function in the theme files (turned on or not) that allows for the theme options to be added anywhere but under appearance (it’s stupid but it’s how the guidelines are). So the theme version of redux has that part pulled out of it (else it wouldn’t pass review).

    What you could do it activate the redux plugin. Then use a child theme and override the theme options settings to force the menu into the sidebar but just note that you will need the redux plugin activated so it’s overriding the theme version.

    Kadence Themes

    Thread Starter micasuh

    (@micasuh)

    Ah, that’s very clear, thank you. I suppose I understand their guidelines, the line has to be drawn somewhere.

    If I install and activate the Redux Framework plugin and it overrides what you have in your theme, will it still have all the same settings and content? And based on what you said, I’m assuming that plugin gives you the option to make it a top-level menu item? I haven’t used it before.

    The options will still be there they are from the config file.

    You will need to use a child theme and add a function to set the menu settings for the theme config still it’s not a plugin setting.

    The function would look something like this:

    add_filter( 'kadence_theme_options_args', 'kt_redux_args_new');
    function kt_redux_args_new( $args ) {
                $args['menu_type'] = 'menu';
                $args['page_priority'] = '50';
                return $args;
    }
    Thread Starter micasuh

    (@micasuh)

    I tried to do this myself without bugging you but I haven’t been successful relocating the Theme Options back to the top-level menu section using the function you wrote or modifying it based on other things I’ve read.

    I tried using another filter suggested by the creator:
    http://stackoverflow.com/a/27810586

    It did not work. Do you have any better suggestions? I really appreciate your time and feedback.

    Hey sorry I had “menu_type” and it should be page type:

    add_filter( 'kadence_theme_options_args', 'kt_redux_args_new', 99);
    function kt_redux_args_new( $args ) {
                $args['page_type'] = 'menu';
                $args['page_priority'] = '50';
                $args['allow_sub_menu'] = true;
                return $args;
    }

    Kadence Themes

    Thread Starter micasuh

    (@micasuh)

    This didn’t change the outcome, I still see it in the Appearance menu.

    Maybe this filter isn’t valid? The filter from that stackoverflow shows a very different value.

    I just tested with a child theme, works fine. are you using the latest version? This won’t work on other versions. Also did you make sure to install the plugin. Have to have it.

    The link you posted of stack overflow is talking about something totally different and it’s also from feb before they built in the api..
    I’m not leading you astray here I can test and know that this works.

    Kadence Themes

    Thread Starter micasuh

    (@micasuh)

    Ah, I didn’t realize there was an update to version 1.28. Now with 1.30 and it works! Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Theme Options located in top admin menu?’ is closed to new replies.