Support » Plugin: Autoptimize » Erasing line-breaks

  • Resolved ginmo

    (@ginmo)


    Hi,

    First of all, thank you so much for this plugin. So far, working great.

    I would like to know if there is any way to erase line-breaks after this plugin integrate all css and js file (or scripts).

    It is only a wide space and it is nothing wrong with speeding the website, but looking into the html code, it looks ugly and would like to tide it up.

    I am sure it is easy to do with “Optimize HTML Code”, but I am looking for the way to erase all line-breaks and move all line up.

    I apologize to ask you such a kind of questions. I will be glad if there is any way to do so.

    All best,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    you could hook into the autoptimize_html_after_minify filter and use str_replace to remove linebreaks I guess, if you’re somewhat into development? 🙂

    Hi,

    Thank you for your reply.

    I am not a coder, and if you can, please let me know the filter above.

    Or if you cannot, please let me know any hint how I should write this filter by myself.

    All best,

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    If not a coder then the best choice would be to activate “optimize HTML” really 🙂

    Hi,

    Thank you for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Erasing line-breaks’ is closed to new replies.