To include custom styles and scripts, you should be using wp_enqueue_style() like so:
add_action('admin_enqueue_scripts', my_enqueue_admin_styles);
function my_enqueue_admin_styles() {
wp_enqueue_style('my-admin-style', get_bloginfo('template_url') . '/css/style.css', array(), 'screen');
}
You want to use this method, as it will add your CSS after the default and thus it will allow you to overwrite the WP styles.
Then, look at the source of any admin page, and search for your CSS. Make sure the URL there is accurate. If it is, the style will load.
Related Posts:
- What is a user agent stylesheet?
- How to set up fixed width for
? - Make div scrollable
- Circle button css
- How do I center an h1 in the body
- CSS text-align: center; is not centering things
- Can you set a border opacity in CSS?
- Any way to limit border length?
- Why “Inline-block” doesn’t work properly in this CSS?
- CSS media queries: max-width OR max-height
- @font-face not working
- how to center an inline div using css?
- How to flip background image using CSS?
- Flushing footer to bottom of the page, twitter bootstrap
- Slanted border using CSS
- Is it possible to define constants in CSS?
- Responsive media query not working in Google Chrome
- How do you center a video using CSS
- How to make fixed header table inside scrollable div?
- CSS – why doesn’t percentage height work? [duplicate]
- CSS Color Filter Overlay
- How to align this span to the right of the div?
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- How to conditionally enqueue a stylesheet only for a certain page(s)?
- Assign a Class to the Current “Tag” for Formatting
- Is there a quick way to remove inline css from all posts?
- How to remove CSS file in the header using WordPress functions?
- wp_tag_cloud inline CSS
- Do I only need to import style.css for a child theme?
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- Disable child theme css on certain pages
- How to load a css file in one page only?
- Change CSS when user is logged in
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- Sticky navigation and the wpadminbar
- Override load-styles.php with admin screen css
- CSS file not registering through add_action
- What controls responsiveness in WordPress?
- Eliminate render-blocking JavaScript and CSS in above-the-fold content
- Unable to load CSS file (HTTP 403)
- Accessing Style Sheet Comment Like WordPress
- Dynamic sidebar nav with current page highlighting
- how to setup content on a static frontpage with css and xhtml
- Bootstrap in theme
- How to integrate my HTML and javascript into my child theme
- Font Awesome icons disappearing [closed]
- How to add inline css code with background image in page html code?
- Move Sidebar from Above Content To Below When Responsive [closed]
- Implementing a simple slider in code?
- CSS – Initial HTML Margin Issue On WordPress Site
- Cannot set property ‘className’ of null at setThemeFromCookie
- Target h1 on single post page [closed]
- Can not find css directory in header
- custom header navigation has odd spacing [closed]
- Error in node.js webpack-cli failed to load config, typeError: ManifestPlugin is not a constructor
- dynamic css file for admin / backend and get_option results in Uncaught Error: Call to undefined function get_option()
- Append style tag in head while shortcode runs
- Add a unique body class for every admin page (including trash)
- Why would a theme writer put their CSS in one long string? [closed]
- Show product information on right side [closed]
- After I change CSS not updating in the browser
- ACF Pro with SlickJS [closed]
- Where are the contents of WP_Head
- customize continue reading
- Target admin page body via CSS class
- Hide Overflow on a Specific WordPress Template
- Google Chrome CSS issues [closed]
- Implement editor’ CSS on the custom themes
- ACF Gut block broke wordpress default style?
- Change class value using CSS
- Hide a div class on WordPress ID (Based on template) [closed]
- What is the cleanest way to shrink Gutenberg Blocks to container width?
- Gutenberg Editor: display error with a combination of transform and background-attachment:fixed
- How to make video responsive in full height on mobile?
- div:before appearing in front of the block
- all of a sudden my child theme style.css is being ignored? Its been working fine for months?
- Why is css not applied on paginated query?
- Disable CSS specific page
- How to stop WordPress from automatically turning letters into small or capital
- Align form elements with css
- Centering items in a row, when you don’t know how many items [closed]
- Removing the “on/off” white rectangle from my homepage (WPtouch)
- Add dynamically Get Request For Every links On the Site For Style Switcher
- how to make social media buttons start only from under a photo/post?
- 100% Width Footer – Custom Child Theme
- How do I show a button only on my custom template page?
- How to remove automatically added
- I want to change the background color on my blog posts
- Twenty thirteen theme change the height of menu sub items
- WooCommerce order note color [closed]
- Bullet List Indentation not showing up in the wordpress
- can i custom rendered content from API?
- How enqueue CSS out of theme folder?
- Styling not refreshing for old visitors on WordPress
- How to include Elementor CSS in custom php file [closed]
- How to add CSS to WordPress
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Wrap post titles containing slashes on narrow viewports
- Import css file from node_modules using @wordpress/scripts
- What is unsafe about this CSS?