AI Verified

Name

WP Dash Dark Mode

Language

PHP

Rating

Voted: 0 by 0 user(s)

Link for further information:

The author has provided the following URL that may be helpful to setting up or using this snippet:

https://youtu.be/9B-Y7L4NhgM?si=7MulXMoZ8CVYCNZt

Codevault

tpm-snippets

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

https://www.theprintmen.com

Snippet Source:

https://www.youtube.com/@WPTuts

History

Last modified:

24/02/2024

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

WP Dash Dark Mode

 
                    
1<?php
2function applyCustomStyles() {
3 echo '
4 <style>
5 
6 /* Change link colour to white */
7 #wpbody-content a {
8 filter: invert(1) hue-rotate(180deg) saturate(10);
9 color: white !important;
10 }
11 
12 /* Change link colour to yellow */
13 #wpbody-content a:hover {
14 filter: invert(1) hue-rotate(180deg) saturate(10);
15 color: red !important;
16 }
17 
18 /* Styling for primary content area. */
19 .block-editor-page .editor-styles-wrapper {
20 color: lightgray;
21 background: #262626;
22 }
23 
24 /* Base styling adjustments. */
25 .wp-admin {
26 background-color: #262626;
27 }
28 
29 /* Image display corrections. */
30 .wp-admin #wpbody img {
31 filter: invert(1) hue-rotate(-180deg);
32 background: white;
33 }
34 
35 /* Enhancements for hyperlink visuals. */
36 .block-editor-page .editor-styles-wrapper a {
37 filter: invert(0.85) hue-rotate(185deg);
38 }
39 
40 /* Filter reset for specific editor sections. */
41 .block-editor-page #wpbody {
42 filter: unset;
43 }
44 
45 /* Adjustments for the main body appearance. */
46 .wp-admin #wpbody {
47 filter: invert(0.85) hue-rotate(185deg);
48 }
49 
50 /* Sidebar appearance customization. */
51 .block-editor-page .interface-interface-skeleton__sidebar,
52 .block-editor-page .interface-interface-skeleton__secondary-sidebar {
53 filter: invert(0.85) hue-rotate(185deg);
54 }
55 
56 /* Configuration for top navigation bar. */
57 .block-editor-page .interface-interface-skeleton__header {
58 filter: invert(0.85) hue-rotate(185deg);
59 }
60 
61 /* Primary action button styling. */
62 .block-editor-page .is-primary {
63 color: black !important;
64 }
65 
66 /* Lower section layout adjustments. */
67 .block-editor-page .edit-post-layout__metaboxes {
68 border-top: 0px;
69 background-color: #262626;
70 }
71 
72 /* Reset various button BG colours */
73 .wrap .add-new-h2, .wrap .add-new-h2:active, .wrap .page-title-action, .wrap .page-title-action:active {
74 background:#f6f7f700;
75 }
76 
77 </style>';
78}
79add_action('admin_head', 'applyCustomStyles');

0

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

AI Verified

0

Add icons to the custom post types in the At a Glance Dashboard widget

Added: 10 months ago

Last Updated: 10 months ago

This snippet adds custom icons to your custom post type counters in the At a Glance widgets on your WordPress Dashboard. I have a snippet in my Codevault on how to add CPTs to this widget too.

WordPress Admin

AI Verified

0

Redirect by page ID

Added: 1 year ago

Last Updated: 1 year ago

Wordpress function to redirect one page id to another page id

WordPress Admin

AI Verified

1

Disable Automatic Updates

Added: 1 year ago

Last Updated: 11 months ago

This will disable automatic updates

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WordPress Admin

AI Verified

0

WP Dash Dark Mode

Added: 6 months ago

Last Updated: 6 months ago