What I have:
A style-color.php
document that dynamically writes/outputs CSS code that should ordinarily be applied to my website’s pages (note: this is a theme file for a WordPress based website).
My problem:
The file works perfectly locally however does not on my live website. By process of elimination, the only real difference that come to mind between my local and live environments are security hardening measures I’ve applied to the live environment and potentially chmod settings.
Security hardening:
I’ve disabled various security hardening measures but to no avail.
chmod settings:
The style-colors.php
is contained in themes > some-theme-name > style-colors.php
and the respective permissions are 755 > 755 > 644
.
My question:
Is there anything obvious I’m overlooking with regards to the permissions or anything else that might be preventing style-colors.php
from behaving as it should?
try this code it be work.