Can’t toggle between Visual and Text or Screen Options

If I am right, a plugin might be causing the issue. To detect the cause of problem, you must know when did this problem started occuring? Did you start after you upgraded WordPress, or after you activated a certain plugin? Also if you’re using WordPress version 3.5, that version does have this issue. Check here, … Read more

Post thumbnail is not shown in wp-admin

I figured out it was because of an script that was delivered with the Options Framework. There was a little piece of code in my functions.php which caused wrong javascript to be loaded. When you are having the same problem, be sure to search for something like wp_enqueue_media(); or something of the following script, comment … Read more

Img src path from wp-admin

Best to use a images folder in your child theme and output like this: $output = sprintf( ‘<img class=”your-class” src=”https://wordpress.stackexchange.com/questions/259497/%s” alt=”https://wordpress.stackexchange.com/questions/259497/%s” />’, get_stylesheet_directory_uri() .’/images/image.jpg’, get_the_title( $post->ID ) ); echo $output;

CSS not showing up in my website Only HTML Displaying

Check you are addressing the CSS file correctly. How is it being called? The url should be along the lines of ht|tp://yoursite.com/wordpress/wp-content/themes/yourtheme/style.css you’ll find somewhere that it’s loading as ht|tp://localhost/and so it will load correctly on your machine but not on anyone else’s. Have a look in Developer Tools for the URL of style.css

Admin Scripts enqueue codes seems ok but not working

Please, try the following code, namespace YOUR_PLUGIN; function backEndAssets() { wp_enqueue_style(‘MYPLUGIN_CSS_URL’, plugin_dir_url(__FILE__) . ‘assets/css/admin-styles.css’); wp_enqueue_script(‘MYPLUGIN_JS_URL’, plugin_dir_url(__FILE__) . ‘assets/js/admin-scripts.js’, array(‘jquery’, ‘media-upload’), ‘1.0.0’, true); } add_action( ‘admin_enqueue_scripts’, __NAMESPACE__ . ‘\backEndAssets’ ); As you are not creating object inside plugin and want to load script then you must define namespace at the begging and define the plugin folder … Read more

custom css in admin panel by user id

Use below code into functions.php file. Make sure you are using it right way use admin_enqueue_scripts add_action(‘admin_enqueue_scripts’, ‘FUNCTION_NAME’);function FUNCTION_NAME() { global $current_user; $user_id = get_current_user_id(); if(is_admin() && $user_id == ‘2’){ wp_enqueue_style( ‘admin_css’, get_template_directory_uri() . ‘/admin-style.css’, false, ‘1.0.0’ ); }}