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

add theme page

hey guys hey Zac Gordon i have problem ! _ in the add theme page lesson the " Theme Options" Does don't appear in the admin area at all i don't know whats wrong , there is no syntax error or anything i'm getting crazy here

4 Answers

Hi Bader :)

What is it you need to do in the section you are referring to as "theme options", this section is not directly accessible as an admin menu item so im just wondering I you are looking for the appearance admin menu item first?

Craig

theme option is the title add_theme_page( 'Theme option', ' ', ' ', ' ',

);

May I just confirm you are on the Customizer API course :S ?

no admin setting api

No Problem Bader, can you post your functions.php code for me to take a look over :) I have the completed file here to reference :)

function bdr_add_theme_page() { add_theme_page( 'Theme Option', 'Theme Option', 'edit_theme_option', 'bdrtheme', 'bdr_theme_options_page', ); add_action('admin_menu', 'bdr_add_theme_page'); function bdr_theme_options_page(){ echo " something here "; }