What's the easiest way of adding more options in the Theme Options of the twenty eleven theme?

admin2025-06-05  0

Wordpress 3.2 beta comes with twenty eleven. It has a Theme Option panel in the Appearance section:

I would like to know what's the easiest (and extendible) way of adding more options to that panel. For instance, changing the color of other elements?

Wordpress 3.2 beta comes with twenty eleven. It has a Theme Option panel in the Appearance section:

I would like to know what's the easiest (and extendible) way of adding more options to that panel. For instance, changing the color of other elements?

Share Improve this question edited Dec 30, 2018 at 19:12 Glorfindel 6113 gold badges10 silver badges18 bronze badges asked Jun 2, 2011 at 15:43 wycwyc 3,90719 gold badges61 silver badges97 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

As you can see in source theme makes some use of Settings API, but doesn't include calls like do_settings_fileds() that would allow you to use add settings.

I would probably try to unhook twentyeleven_theme_options_add_page() call and fork that and theme_options_render_page() to extend it with additional options.

Also I think that unlike core Twenty Eleven wasn't declared to be ready yet. Things might change.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749057749a315994.html

最新回复(0)