Home › Forums › Support › GP Premium 1.11.0 rc.1 Dynamic CSS Print Method external CSS file not working
- This topic has 15 replies, 4 voices, and was last updated 3 years, 7 months ago by Tom.
-
AuthorPosts
-
August 4, 2020 at 3:08 pm #1387518Alexander
Downloaded the latest version “rc.1” Locally I am using Laragon on Windows + Clean WordPress installation.
When I am using Generatepress theme with “rc.1” I have the option to chose generate a external css file instead of using inline. However when I chose external there is no change on the page and Generatepress is still using inline css for settings.August 4, 2020 at 3:26 pm #1387533AlexanderUpdate: The CSS file is generated and loaded, however there is still inline CSS added.
If I choose use inline css the html size is smaller than using external which seems wrong.August 4, 2020 at 5:53 pm #1387611TomLead DeveloperLead DeveloperHi there,
What version of the theme are you using?
Any chance we can see the issue on a live server?
August 5, 2020 at 5:33 am #1388067AlexanderHello Tom, I am using the latest version from the official WordPress.org “market” V 2.4.2
Currently i dont have Website in development using GeneratePress, the once I have are in production. And does not have a staging site either.
Here is link to Laragon https://laragon.org/download/ If you would like to replicate it locally.
August 5, 2020 at 8:56 am #1388449TomLead DeveloperLead DeveloperIf the plugin isn’t able to create the stylesheet, it will fall back to displaying inline CSS. It sounds like there might be permission issues on your server preventing the file from being created.
Is the style.min.css file being enqueued if you view the source? If should be in
wp-content/generatepress/style.min.css
August 5, 2020 at 12:21 pm #1388655AlexanderYes its created and i can even see it if i view source.
I can also locate the file inside the WordPress dir based on what i can see in the source code.However inline CSS is still added to the head section of the html doc.
I am not using any caching or something like that.Earlier today i did a complete reinstallation and tested both with Laragon and XAMPP.
Still the same problem that inline css is added no matter what.August 5, 2020 at 1:09 pm #1388692TomLead DeveloperLead DeveloperHmm, this isn’t something I’m able to replicate. I don’t have Laragon (using Local at the moment), however it shouldn’t matter.
What kind of server setup do you have? Apache? Nginx?
Can you show me a screenshot of your source with the HTTP request for the file and the inline CSS?
August 5, 2020 at 5:53 pm #1388859AlexanderI tested again this time using LiteSpeed by creating a staging site based off a real website.
I still have
<link rel="stylesheet" id="generatepress-dynamic-css" href="//dev.*.*/wp-content/uploads/generatepress/style.min.css?ver=cdd2c68c49abb05fd7d0c5cf82c3c8ed" type="text/css" media="all">
and
<style id="generate-style-inline-css" type="text/css">
The dynamic css file is being generated and added to header, but the inline css is still there as well…
Its not a error due to permission i can delet the dynamic css file and regenerate it. And it contains css just like the inline css.August 5, 2020 at 8:03 pm #1388923TomLead DeveloperLead DeveloperAny chance you can show me a screenshot of the inline CSS?
August 7, 2020 at 8:44 am #1391687AddisonHey, Tom. I’m having the exact same issue. Also on Windows Laragon. Here are a couple of screenshots that may help.
Source view:
https://www.dropbox.com/s/ysdvwrwkazuc7zf/GP-inline-css-and-external-link.png?dl=0External CSS (matches the inline CSS):
https://www.dropbox.com/s/ysdvwrwkazuc7zf/GP-inline-css-and-external-link.png?dl=0Let me know how I can help.
Thanks,
AddisonAugust 7, 2020 at 8:54 am #1391698TomLead DeveloperLead DeveloperThanks for the screenshots! I believe I have this fixed, will be releasing 1.11.1 today ๐
August 7, 2020 at 12:26 pm #1392005AddisonThanks so much, Tom. I just installed the update and all seems well.
August 7, 2020 at 12:34 pm #1392018TomLead DeveloperLead DeveloperAwesome, thanks for letting me know ๐
August 7, 2020 at 12:59 pm #1392057FunkyCssHallo Guys , i see you have installed the latestet update and you have this figured out, but as i see for my sites is not working . I see the css file beeing generated but i see more inline css this time , i have opened the same topic as well.
August 7, 2020 at 1:25 pm #1392078AddisonI’d first check to see if any of your inline styles match the external css being generated. I’m still seeing a bit of inline CSS on my site, but it’s no longer duplicated in the external styles.
-
AuthorPosts
- You must be logged in to reply to this topic.