make admin.css in my child theme

The get_template_directory_uri() function gets the URL to the parent theme. The equivalent function for child themes is get_stylesheet_directory_uri(). However these days the proper function to use to get the URL for a file in a child theme is get_theme_file_uri(): function wp245372_admin_enqueue_scripts() { wp_enqueue_style( ‘my-admin-css’, get_theme_file_uri( ‘my-admin.css’ ) ); } add_action( ‘admin_enqueue_scripts’, ‘wp245372_admin_enqueue_scripts’ );

Change css for tag in wordpress admin

If you’re trying to change the styles of the wysiwyg editor, which I assume you are based on your code example, you need to use the add_editor_style() function. As per the example in the code reference. Step 1 Add the following to the functions.php file of your theme. /** * Registers an editor stylesheet for … Read more

How to stop my themes CSS changing the WordPress interface/?

This can happen if the function for enqueueing stylesheets, wp_enqueue_style() is run inside functions.php outside of a hooked function, like this: <?php wp_enqueue_style( ‘my-style’, get_stylesheet_uri() ); functions.php is loaded on the front-end and back-end when your theme is active, so this will load the stylesheet in both places. To only load a stylesheet on the … Read more

Dashicons and Pseudo :before

The dashicons are only part of the WordPress admin area. So if you’re aiming for dashicons in the frontend you’ll have to enqueue the icon font within your function.php: add_action( ‘wp_enqueue_scripts’, ‘frontend_dashicons’ ); function frontend_dashicons() { wp_enqueue_style( ‘dashicons’ ); } Moreover you’ll not need to remember those cryptic icon values like \f161; simply add the … Read more

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