Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #148942
    mriya
    Guest

    Hello! I use the Code Block Pro plugin (https://wordpress.org/plugins/code-block-pro/) with HTML minification enabled in W3TC – which causes the code to lose indentation when using the Code Block Pro copy button.

    The indentation is displayed normally in the post, only the copy button is affected. Is there any way to bypass minification in Code Block Pro?

    #148988

    Hello,

    Thank you for reaching out and I am happy to help!
    Can you please share the HTML minify settings currently enabled in the W3 Total Cache?
    Also, can you please share the URL of the affected page and the HTML Minify method used and also, please let me know if you are using Cloudflare and their Minify options as well.

    And to confirm again, the problem is resolved if you only disable HTML modification and keep using JS and CSS minify?
    Thanks!

    #149010
    mriya
    Guest

    HTML minifier: minify (default)
    Advanced settings: https://i.imgur.com/UTDxERS.png

    Example of affected page: https://octadata.com.br/blog/apps-script-manipular-google-sheets/

    Although I do use Cloudflare, as soon as I disable W3TC HTML minify, the indentation problem when using the copy button of a code block is resolved.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Code Block Pro + HTML Minification (W3TC)’ is closed to new replies.