Tagged: post css
Hello,
Is it possible to disable the post css feature? I’m having some issues with it not always creating a css file for the post so some page styles are lost. It requires editing the page and saving again. At first it was related to my server cache (WP Rocket) deleting the files and once I told it to ignore that directory it seemed to fix it. But I’m still getting random reports of messed up pages.
I saw in the update notes for v4.8.6.1
“added: filter avf_post_css_create_file – allows to skip post css file generation”
So I wondered how I could go about disabling that feature and just go back to inline css. I know that isn’t ideal for load speeds, but losing background images makes a page look wonky.
Thanks for any help you can provide.
Think I found the solution.
Here – on GitHub
function custom_avf_post_css_create_file( $create )
{
return false;
}
add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );
Not ideal, but bypasses issues with post.css
Thanks.