• Resolved Pandasonic2

    (@pandasonic2)


    I need to add these other substitutions in html code.
    I’d like to do it not modifying the plugin but adding with some function in functions.php in my child theme.
    Can someone help me?

    $buffer = str_replace( ' />', '>', $buffer );
    $buffer = str_replace( 'type=\'text/javascript\'', '', $buffer );
    $buffer = str_replace( 'type=\'text/css\'', '', $buffer );
    $buffer = str_replace( '/>', '>', $buffer );
    • This topic was modified 2 years, 4 months ago by Pandasonic2.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tim Eckel

    (@teckel)

    Can I ask why this is “needed”? Or are you just saying you’d “like” to add those substitutions?

    To add these substitutions you’d need to change the plugin. There’s no exposed hooks to add your own.

    Plugin Author Tim Eckel

    (@teckel)

    Also, Minify HTML already removes self-closing tags, there’s a setting to turn that on or off.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ad some other substitution…’ is closed to new replies.