How to create a custom theme options page in Wordpress?

Adrian

I want to create a custom option theme page for my wordpress theme and i found this tutorial http://wp.tutsplus.com/tutorials/theme-development/create-a-settings-page-for-your-wordpress-theme/, but the problem is that it doesn't work, and i am afraid that is too outdated. I am using wordpress 3.7.1. The function that i added and tried to create the wordpress setting theme page is

function setup_theme_admin_menus() {  
    add_submenu_page('themes.php',   
        'Front Page Elements', 'Front Page', 'manage_options',   
        'front-page-elements', 'theme_front_page_settings');   
}  
function theme_front_page_settings() {  
    echo "Hello, world!";  
}  

And i placed in my theme functions.php but nothing happened.

saifur

Add this code : add_action("admin_menu", "setup_theme_admin_menus");

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to Create static Page for navigation bar in custom wordpress theme

How to create a custom html page template in wordpress theme and how to link that page with other css/php file?

custom theme for wordpress new page

How create new custom fields for my Theme in Wordpress

How Create Responsive One Page WordPress Theme with scrollable effects?

How to create custom post page in WordPress?

How to create custom route to a page in WordPress

How to add color picker in wordpress theme options

How to create a custom theme for QtCreator

Wordpress Custom Options Page is not showing settings fields

Wordpress - create a page with custom URL

How to create shortcodes with options in Wordpress

How to create a edit profile page for users on frontend with custom fields on wordpress?

How to implement photoswipe into wordpress custom theme?

how to add a logo on custom wordpress theme

How to register Css of html page in wordpress theme

custom tumblr tags to create theme options for border color and border image

WordPress Custom Page Theme showing posts of current user

WordPress + Timber w/ custom theme + routing - 404 page not rendering

Different inside v home page in custom Wordpress theme

Making a custom html page work outside of theme in wordpress

How to create wordpress child theme if folder name and theme name is different?

wordpress theme option page create a select list (dropdown)?

How to make a custom page in Wordpress

How to create custom theme for Google Form?

How to create a completly custom theme in Tuleap?

Adding a background options for a WordPress theme

Wordpress Functions Theme options formatting

Wordpress: Create a custom page through widget