I got a strange issue in WordPress. I build a themes for WordPress. when I activate my theme, some sub-menu under appearance in admin panel where missing.

enter image description here

If I activate another themes it works normal.

enter image description here I comment out some lines in themes but no progress. What makes this problem and How to fix this issue?

  • Did you add these subpages to when you created your theme? As far as I know these are custom theme options that need to be built into the theme as submenus – Howdy_McGee Sep 11 '15 at 22:02

Most of those are controlled by your theme support. The functionality does not come for "free" with WordPress, you need to implement the actual code. Once you have put together the code for your theme to support one of the features you can enable it with add_theme_support.

for example, in functions.php:

add_action( 'after_setup_theme', function () {
  add_theme_support( 'custom-background' );
} );

This would trigger the display of the "Background" menu item in the Appearance sidebar, but it would not affect your theme, you would need to hook into it and implement the theme features.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.