• Resolved obriennolan

    (@obriennolan)


    Everything seems to be working well with multisite for me, except for one thing. I’ve installed and network activated a theme that I really want to use, but it has a Theme Options page that I’m unable to access.

    Problem:
    Once the theme is activated, a Theme Options link is supposed to show up in the Admin Menu. It’s not. When I plug the path into the browser to try to go to the page directly, I get this: “You do not have sufficient permissions to access this page.”

    Things I’ve tried:

    • I tried the theme in a fresh, non-multisite install, and everything worked fine.
    • I checked to make sure I’m accessing the subsite with the Super Admin user. I am.
    • I scoured the web looking for possible ways to troubleshoot this, and came up with a few forum posts that seemed relevant, but not the same. (I’m not familiar enough with PHP to creatively apply solutions to similar types of problems. Hence, this plea for help.)
    • I posted a few times in the theme’s forum, but received no reply (yet).
    • I found what I believe may be the code snippet that needs fiddling with (below).

    /* If the user can’t edit theme options, no use running this plugin */
    add_action(‘init’, ‘optionsframework_rolescheck’ );
    function optionsframework_rolescheck () {
    if ( current_user_can(‘edit_theme_options’) ) {
    // If the user can edit theme options, let the fun begin!
    add_action(‘admin_menu’, ‘optionsframework_add_page’);
    add_action(‘admin_init’, ‘optionsframework_init’ );
    add_action(‘admin_init’, ‘optionsframework_mlu_init’ );
    }
    }

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @obriennolan,

    Thank you for your question.

    I just checked the sunrise theme on single and multi site and it displayed the Theme Options same as displayed in this screenshot https://tinyurl.com/mjk3tf8

    Are you using any user role / capability manager plugin?

    There can be a plugin conflict can you just try deactivating all plugins to find the conflicting plugin?
    Refer the flowchart displayed on this page.

    Regards,

    Moderator cubecolour

    (@numeeja)

    If the theme wants to put its menu item in a specific position in the menu, but a plugin has grabbed that position first, the new one will not show. To investigate whether this may be the case, deactivate your plugins temporarily. If the theme’s options menu shows up, activate the plugins one-by-one to find the plugin that breaks it.

    Thread Starter obriennolan

    (@obriennolan)

    Thank you WPMU DEV and cubecolour. It was an Options Framwork plugin that was causing the issue. Duh.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin Menu Item Not Showing Up’ is closed to new replies.