在localhost上的Wordpress主题

I have installed a theme on a WordPress page running on localhost, but I get this error:

wp_remote_get() failed. Some theme features may not work. Please contact your hosting provider and make sure that https://build.envato.com/api/ is not blocked.

wp_remote_post() failed. Some theme features may not work. Please contact your hosting provider and make sure that https://envato.com/ is not blocked.

Does anyone know how to fix this issue?

Try to locate your php.ini file and look for allow_url_include = Off. Change it to allow_url_include = On.