1

I developed a child theme of Twenty Eleven. I need additional theme options, so i added a theme-options.php file inside my child theme's folder.

However, it appears the option page is still the 2011 theme's option screen. I can't either replace or add another one.

Question: what is the correct procedure to add options to a child theme?

In case you wish to see the code, here is my theme-options.php code.

1 Answer 1

2

This thread suggests that this isn't necessarily an intended Child Theme usecase so theme-options.php isn't explicitly overrideable. It indicates that you should rather be adding extra options using add_settings_field and the admin_init hook.

1
  • Thanks a lot, that pointed me to a great solution: using add_settings_field is exactly what i needed. There is a very handy working example if anyone is having the same need: codex.wordpress.org/Settings_API
    – pixeline
    Commented Feb 20, 2012 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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