prevent front end theme from injecting css into wp-admin

Restructure your CSS files and remove !important rules from your .css files and use proper markup (classes, IDs and etc.). e.g. a, .entry-summary a, .entry-content a { color: #06F !important; font-weight: 400; } Judging from the test WS which was found with site: search in Google using the URL in your Facebook profile (Temper Temper). … Read more

Style Radio Buttons inside Edit Page (Custom Fields)

Add your styles to /your-theme/admin-edit-post.css .inside ul.acf-radio-list.radio.horizontal li label { /* styles… */ } Then enqueue the styles by adding this to your theme’s functions.php: function wpse250000_admin_styles( $hook ) { // Bail if we’re not on the post.php admin page if ( ‘post.php’ !== $hook ) { return; } // Ensure we’re looking at a … Read more

How to change text size on category pages

You can change admin css with this code to functions.php: add_action(‘admin_head’, ‘my_custom_fonts’); function my_custom_fonts() { echo ‘<style> body.taxonomy-category .row-title,body.taxonomy-category input{ font-family: “Lucida Grande”; font-size: 16px; color: #f04040; } </style>’; } Edit this code as you need.

Admin bar default color scheme for nonregistered/nonlogged users

Follow these steps: Use the following code in your functions.php or your site specific plugin: function set_default_admin_color($user_id) { $args = array( ‘ID’ => $user_id, ‘admin_color’ => ‘coffee’ ); wp_update_user( $args ); } add_action(‘user_register’, ‘set_default_admin_color’); Now, add these lines to force “Coffee” color scheme to be displayed in the admin bar: if ( !current_user_can(‘manage_options’) ) remove_action( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)