Admin Menu Item Not Showing Up
-
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?
- The topic ‘Admin Menu Item Not Showing Up’ is closed to new replies.