Where do I author my custom CSS?
-
Hi, I would like to change not only the color scheme in the admin area (which the plugin does great), but also the font family and font size of the text when I am writing posts and pages.
I see in the documentation that the plugin provides a filter for customization:
add_filter( 'dark_mode_dashboard_css', 'your_custom_stylesheet' )— load a custom stylesheetWhere is this file? Or do I create a file from scratch? And if the latter, where do I upload it in my theme’s directory (or plugins directory)? Or is the idea that I need to add that line to my functions.php file, and then add a “your_custom_stylesheet.css” file to the root of my site’s theme?
I tried editing /wp-content/plugins/dark-mode-for-wp-dashboard/assets/css/dark-mode-editor.css
I added a font rule on line 47:
body.dark-mode .editor-styles-wrapper p {
color: var(--dm-text-primary);
font: 22px/1.5 "Noto Serif", Georgia, serif !important;
}But my blog posts and pages are still showing (in the Admin area) in the default font that WordPress ships with.
I’m sorry if all of this seems elementary to you—my expertise is in CSS, but not WordPress-flavored PHP. Thanks!
You must be logged in to reply to this topic.