style-static.css

Hi,
I had to turn off the use of style-static.css.
After updating to your latest version of the theme the style-colors.php is empty. I used the one from before the update, but the style-static is doing nothing.
What can I co in order to get this thing working. On your documentation you are referring to style.php and style-colors.php, but it is not working anymore.
Furthermore, may I place the style-static.css file in the child theme?
thanks,
Koen.

Comments

  • Hi,

    these files does not work anymore. We were forced to change the way of how styles are loading because of Jetpack plugin used by a lot of people. They changed something in 3.7 version and does not care about dynamic css in themes. So now, all styles are loading in header and files like style.php and style-colors.php does not work no longer.
  • Hi,
    so I just turn off style-static in betheme options and everything is OK? There is nothing else I should do? Does this has repercusions regarding site speed?
    thanks,
    Koen.
  • Of course style static works faster then dynamic but since version 9.6 we load all styles in header, it does not take so long to load them when they were in php files. So if you use 9.6 version or newer, then you don't need to do anything else with styles.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.