Site logo

Archived topic

Dynamic CSS Print Method not working

8 replies · Started by Edwin on February 19, 2021

Viewing posts 1–9 of 9

Hi Tom

The CSS is in my website is not transferred to the external file while using Dynamic CSS Print. I tried to deactivate the Catching plugin, but it doesn't make a difference.

I also tried to copy the CSS to the external style sheet in Generate press Child theme, but that broke my web site as it is not recognizing the CSS at all.

Any idea?

Thanks

Edwin

Hi there,

can you disable your cache plugins so we can see whats going on?

Hi David

Disabled.

It is working you can see the link in the <head>:

<link rel="stylesheet" id="generatepress-dynamic-css" href="//www.sitename.com.au/wp-content/uploads/generatepress/style.min.css" media="all">

Note: some dynamic CSS is left inline within generate-style-inline-css. We constantly improving the way dynamic CSS is generated, but for now their will always be a little CSS left inline.

Hi David

Thanks for checking, however none of my css is transferred over to the style sheet.
All my CSS is under Customizing/Additional CSS.

See screenshot

Aah the Additional CSS isn't included in the Dynamic CSS - its a WP function. Dynamic CSS is purely what the Customizer settings generate. You would simply need to move the Additional CSS to your child themes style sheet.

Hi David,

Got you. I copied it to the child theme style sheet, but it is breaking my website now. When I go to generatepress_child/style.css i am getting a 404 error.

Hi David,

All good. Had to clear the Litespeed cache in the server. All working now.
Thanks for your help

Generatepress is the best. Google pagespeed test is now 97

Edwin

Awesome - glad to hear that!

This archived topic is closed to new replies.