Unable to properly load WordPress Admin page

Looks like theme problems to me. I’d change it back to one of the ‘Twenty’ themes as a first step. If OK, then start diagnosing the theme. (You could reinstall the theme manually which might protect settings, or FTP the theme files manually. Or just remove the theme and reinstall, but you might have to … Read more

How do I create a state of “don’t assign anything to variable” if WP_Error throws an error?

Looks like the line giving you the error is rather this one $data = json_decode( $this->get_json(), true); Like this (untested) it should work: private function get_data() { /** * Ingests the data from get_json() then converts / decodes into an array. */ $json = $this->get_json(); if (is_wp_error($json)) { return new WP_Error( ‘invalid-data’, esc_html__( ‘Something is … Read more

Custom CSS is overwritten by WordPress?

I do assume you have functions.php file in your theme directory after that you can add following code : /*Section for enqueuing styles and scripts*/ function keyword_theme_styles_and_scripts(){ /* Styles Below */ wp_enqueue_style(‘bootstrap-min-css’, ‘https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css’); wp_enqueue_style(‘video-js-min-css’, get_template_directory_uri().’/assets/css/video-js.min.css’); wp_enqueue_style(‘google-fonts’, ‘https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800’); wp_enqueue_style(‘font-awesome-min-css’, get_template_directory_uri().’/assets/font-awesome/css/font-awesome.min.css’); wp_enqueue_style(‘magnific-popup-css’, get_template_directory_uri().’/assets/css/magnific-popup.css’); wp_enqueue_style(‘animate-min-css’, get_template_directory_uri().’/assets/css/animate.min.css’); wp_enqueue_style(‘device-mockups-min-css’, get_template_directory_uri().’/assets/device-mockups/device-mockups.min.css’); wp_enqueue_style(‘main-css’, get_template_directory_uri().’/style.css’); /* Scripts Below */ wp_enqueue_script(‘jquery-min-js’, get_template_directory_uri().’/assets/js/jquery.min.js’, array(), ”, … Read more

Crawl Errors in Search console

I came across the same problem on my VDS recently. I was running CentOS with CloudLinux (LVE) and it turned out that CloudLinux was at fault. Cloud Linux limits resources available to the account so if you get more visitors and resources end, you would get 500 errors. My solution is to disable any limits … Read more