How to keep web code neat and clean

Support General How to keep web code neat and cleanResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #48722
    369cycle369cycle
    Participant

    How to keep web code neat and clean

    #48726
    Anh TranAnh Tran
    Keymaster

    We added support for outputting inline style, to improve the site's performance. See more details here.

    FYI: inline style is not that bad 🙂

    #48744
    369cycle369cycle
    Participant

    Could you provide the function syntax directly so that I can use it directly to solve this problem?

    #48745
    369cycle369cycle
    Participant

    #48746
    369cycle369cycle
    Participant

    Please provide a function code to remove unnecessary CSS and built-in HTML styles...

    #48764
    Anh TranAnh Tran
    Keymaster

    In the latest version, we remove the inline HTML above. They were used for media and upload fields.

    For the inline CSS, there is no way to change this behavior. However, you can remove them (and also inline CSS for WP blocks) using this snippet:

    add_filter( 'styles_inline_size_limit', '__return_zero' );

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