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 trialBader Muteb
3,306 Pointsadd 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
Craig Watson
27,930 PointsHi 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
Bader Muteb
3,306 Pointstheme option is the title add_theme_page( 'Theme option', ' ', ' ', ' ',
);
Craig Watson
27,930 PointsMay I just confirm you are on the Customizer API course :S ?
Bader Muteb
3,306 Pointsno admin setting api
Craig Watson
27,930 PointsNo Problem Bader, can you post your functions.php code for me to take a look over :) I have the completed file here to reference :)
Bader Muteb
3,306 Pointsfunction 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 "; }