Make Theme Options Menu item more easily / directly accessible

Theme Options page under Appearance are added by this function. <?php add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function ); ?> To make it appear outside as a top level menu page replace it with following. <?php add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function,$icon_url, $position ); ?> Where $page_title :The text to be displayed in the title tags … Read more

How to give site owner the ability to change to footer text via theme options (1 post)

So you have created a custom option using the Settings API. Lets say you have created an option called footer-text you can display it in your theme using <?php echo get_option( ‘footer-text’ ); ?>. Essentially you are echoing the result that is stored in the wp_options table for the option called footer-text. It is advised … Read more

Build Form on Dashboard

After did many trials and errors, finally I found the answer. Just in case anyone wondering how this working, I put the full code right here : /* == THEME OPTIONS == */ add_action(“admin_menu”, “setup_theme_admin_menus”); function setup_theme_admin_menus() { add_submenu_page(‘themes.php’, ‘Generate Coupons’, ‘Generate Coupons’, ‘manage_options’, ‘generate-coupons-elements’, ‘theme_generate_coupons_settings’); } function theme_generate_coupons_settings() { ?> <div class=”wrap”> <?php screen_icon(‘themes’); … Read more