WordPress Foreground background page Open slow solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.