Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

oussama bouyardane
PLUS
oussama bouyardane
Courses Plus Student 1,292 Points

How i can make a Custom Theme Option for my own custom wordpress theme?

Hello guys, Recently i create my own wordpress theme but i want to create a Custom Theme Option and to be linked with it, so please how i can do that? thanks for all :)

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

We don't have any content for this yet, but will by the end of the year. In the mean time look into the Options Framework plugin and related tutorials for that.

Or you can watch our plugin development course and probably figure out how to code it all yourself.

oussama bouyardane
oussama bouyardane
Courses Plus Student 1,292 Points

thank you for your reply can you give me url for plugin development course? and i wait you to create a course for make custom theme option :)

Matt Campbell
Matt Campbell
9,767 Points

Grab one of the theme options templates. You basically use meta data to save colours and text etc, and then get the option in the theme files instead of hard coding it in. It's quite simple once you're comfortable adding, updating and getting options from the database and saving forms to the database. Bit of jQuery here and there for color pickers and you're all set.

oussama bouyardane
oussama bouyardane
Courses Plus Student 1,292 Points

Thank you sir, you can give me tutorial about that? to create custom theme option? and linked with my template? Thanks.