Write a personal website with WordPress program is a good choice, but the current installation after a slow, background configuration page half a day to open, in the Internet to check the original is Google was the wall, wordpress default template will be loaded Google Open-sans font, Just remove or disable this function, generally we do not use WordPress to provide the default template, we recommend the first choice of the template we like, the domestic template is usually blocked by default Google Font services, the general problem is solved, if the speed is still very slow, the solution is as follows:
Open the template directory/wp-content/themes/template name, locate the functions.php file in the directory, and add the following code before the last position?> (if any):
1 // disable calling Google Fonts 2 function Remove_open_sans () {3 wp_deregister_style (' Open-sans ' ); 4 false ); 5 Wp_enqueue_style (' Open-sans ', '); 6 }7 add_action (' init ', ' Remove_open_sans ');
After saving, the speed is restored.
Or we can use a plug-in to solve, into the background management interface, click on the "plugin", and then click "Install Plugin",
Then enter "Disable Google Fonts" In the plugin search box and return to search
Then, after searching, click "Install Now" and then we'll wait a few minutes for the installation to succeed.
Now that the installation is successful, click "Enable Plugin" to do it.
Now the foreground and background slow problem estimation is solved, plug-ins and the above code can be reused, faster than before.
WordPress Foreground background page Open slow solution