Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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.

share|improve this answer
    
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 Feb 20 '12 at 18:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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