In your construct function you also need to enqueue a custom stylesheet that will house the CSS to style up your theme options.
A simplified example would look like this:
function admin_style() {
wp_enqueue_style( 'theme-options-style', get_template_directory_uri().'styles/theme-options-style.css');
}
add_action('admin_enqueue_scripts', 'admin_style');
Related Posts:
- Add update notification bubble to admin menu item?
- Admin page repeatable fields
- Efficiency of wp_options vs a new table
- update_option does not work in this scenario – how do I fix?
- admin menu: use default “general” page for theme settings using add_menu_page and add_submenu_page
- How Do I create multiple Top Level Admin Menu Pages To submit data to the options table?
- Settings API – Checkboxes validation in a menu with multiple subpages
- Hiding an added admin page menu using css
- WordPress admin menu formatting issue
- The Great WordPress Admin Menu Challenge of Jan 2011 (a.k.a. How to Resolve Some Challenges when Modifying the WordPress Admin Menu System?)
- Remove duplicate main – submenu in admin?
- Plugin View Details Link
- Add an admin page, but don’t show it on the admin menu
- How To Add New Option Types To Option Tree?
- Are there any reasons you can’t use strings for admin menu positions?
- remove_menu_page doesn’t work on custom plugin menus
- Order Admin sub-menu items?
- Submenu pages delete settings from options array when saved
- How Can I remove or hide the export page in WordPress menu?
- Site Title and Tagline in Theme Options Page
- Reorder custom submenu item
- How to check if an admin (sub)menu already exists?
- How to hide menu on WordPress admin
- Editor role cannot save custom theme options
- WordPress settings API error when checkbox unchecked
- custom admin menu with custom filed
- Site Title and Tagline in Pagelines DMS Options Panel
- Save Theme Options (options.php) From The Frontend
- Remove menus and submenus
- Highlighting a Menu Item by Post Name
- How to remove the Plugins Editor from the admin menu
- add logout button on admin side menu
- Display user HTML on website
- Need help understanding/coding with Settings API
- Admin Menu – Highlight top-level menu when on a sub-menu page (without showing sub-menu)
- Show admin menu and toolbar in admin post page
- Theme options WP Editor
- How to change menu page capability
- add function to saving change on Options Pages
- WordPress add_options_page() function not considering role
- How to mark an option as selected
- How to determin which admin screen/sub screen I’m currently viewing
- Cannot update WordPress General Settings Site Title and Tagline
- How do I insert the smaller variant of an image?
- Why add_menu_page adds admin.php and how to remove it?
- Is there any way to add absolute path for add_menu_page function?
- Admin menu bar dropdown opens when I click on a form element (Chrome) [closed]
- Can’t save options
- how can i add custom menu in admin panel?
- Change URL of plugin admin menu
- Is it possible to pass variables from add_user_page?
- place a direct link to custom-stylesheet, under appearance menu in wp-admin
- Wrong current class on admin menu with add_submenu_page()
- get option framework options returns Call to undefined function of_get_option()
- What action/filter/function determines “current” class in WP Admin Menu
- Error: options page not found
- ‘Headers already sent’ Error When Redirecting from add_submenu_page() Callback
- How to save custom settings api fields with custom section fuction
- Adding admin top-level menus
- Disordered sidebar in admin panel of self-hosted blog network [duplicate]
- How to rename Profile link in wp-admin page
- Additional menu item popping in submenus
- Issue on Checkbox with Custom Option Page
- WordPress theme options framework, I can’t read them in my templates
- Visiting a console submenu page does not expand its parent menu item
- Disable new Site Health screen safely?
- add submenu page doesn’t display
- Moving the WordPress dashboard avatar over the admin menu
- WordPress plugins add parent menu option in admin main right
- Change menu order of core post-type in UI?
- WP Page Options Array
- Theme options are they necessary
- How can I restrict a custom WordPress role access to only a specific plugin?
- wp_login_url not working correctly
- How do I display a WP Option from an array?
- How to load dynamic option with ajax
- Admin sidebar customization
- Show limited menu to admin
- How would one add a nonce to a menu item in the WordPress dashboard?
- How can I change the admin menu title and url title on WordPress
- display category name based on its equivalent id
- add_menu_page not show link for custom role
- Linked pages not working with wordpress
- Unable to add custom page to WordPress admin panel
- Insert link in sub menu – Admin panel
- How to have submenus collapsed until they are clicked?
- How to redirect one admin URL to another when admin page URL has “/admin.php?page=” in it?
- how to remove wp admin menu created by plugin
- Renaming post to something else, breaks dashboard if edit_posts is false
- Removing admin menu items with white spaces
- Changing the layout of a custom options page
- Theme Option’s Save Button is not working
- How to include the admin bar?
- Remove the theme info from main dashboard screen- not appearance
- How to add admin bar only page?
- Turn on again old expandable menu
- Options.php loop won’t show!
- Responsive Admin Themes
- Add items to the dark menu in WordPress
- Remove menu pages only for non admin