Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1321101

    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.

    #1321134

    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.

    #1321298

    Hi,

    Thanks for the update and for sharing, that filter should disable the post CSS yes. If you need further help with the problems on your site, then please provide us login details in private, and let us know how to reproduce the problem.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.