Problem with style.php and style-colors.php file?

If you have problems with styles/fonts on your site, then please check if style.php and style-colors.php works properly. If not, then you can try to edit your .htaccess file on FTP. Please replace below content inside file:
<Files *.php>
deny from all
</Files>
with:
<Files *.php>
deny from all
</Files>

<FilesMatch "^style\.php$">
Allow From All
</FilesMatch>

<FilesMatch "^style-colors\.php$">
Allow From All
</FilesMatch>

Comments

  • This did not work for us. We are still having issues with style.php not loading. I have also temporarily disabled security plugins and loosened permissions on the style.php file and noting has helped.
  • Update: This worked by editing the .htaccess file inside the wp-content directory (NOT the main .htaccess file in the site's root directory).
Sign In or Register to comment.