WordPress Admin Bar is not working with my custom theme?
-
Background:
I’m developing my own theme for one website that is operating on WordPress Network (WordPress Mu) and I had no problem with the past upgrades. After upgrading to WordPress 3.1 and using the Network Admin. I wasn’t able to access to the Network Admin with my custom theme. However, when I switch the theme back to Twenty Ten, it works fine? What should I do?Error
Fatal error: Call to undefined function add_contextual_help() in XXXXXXXXXXXXXXXX/wp-admin/network/settings.php on line 22
Code
$title = __( 'Settings' ); $parent_file = 'settings.php'; // Line 22 start here add_contextual_help($current_screen, '<p>' . __('This screen sets and changes options for the network as a whole. The first site is the main site in the network and network options are pulled from that original site’s options.') . '</p>' . '<p>' . __('Operational settings has fields for the network’s name and admin email.') . '</p>' . '<p>' . __('Dashboard Site is an option to give a site to users who do not have a site on the system. Their default role is Subscriber, but that default can be changed. The Admin Notice Feed can provide a notice on all dashboards of the latest post via RSS or Atom, or provide no such notice if left blank.') . '</p>' . '<p>' . __('Registration settings can disable/enable public signups. If you let others sign up for a site, install spam plugins. Spaces, not commas, should separate names banned as sites for this network.') . '</p>' . '<p>' . __('New site settings are defaults applied when a new site is created in the network. These include welcome email for when a new site or user account is registered, and what?s put in the first post, page, comment, comment author, and comment URL.') . '</p>' . '<p>' . __('Upload settings control the size of the uploaded files and the amount of available upload space for each site. You can change the default value for specific sites when you edit a particular site. Allowed file types are also listed (space separated only).') . '</p>' . '<p>' . __('Checkboxes for media upload buttons set which are shown in the visual editor. If unchecked, a generic upload button is still visible; other media types can still be uploaded if on the allowed file types list.') . '</p>' . '<p>' . __('Menu setting enables/disables the plugin menus from appearing for non super admins, so that only super admins, not site admins, have access to activate plugins.') . '</p>' . '<p>' . __('Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Super Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.') . '</p>' . '<p><strong>' . __('For more information:') . '</strong></p>' . '<p>' . __('<a href="https://codex.www.ads-software.com/Network_Admin_Settings_Screen" target="_blank">Documentation on Network Settings</a>') . '</p>' . '<p>' . __('<a href="https://www.ads-software.com/support/" target="_blank">Support Forums</a>') . '</p>' );
I do have “setting.php” in my theme folder as part of the theme options.
Any help would be great! Thank you in advance.
- The topic ‘WordPress Admin Bar is not working with my custom theme?’ is closed to new replies.