• Resolved Manuel Razzari

    (@manuelrazzari)


    I’m having trouble with the /feed/ URL and the “HTML minification” feature of FVM.
    Some other plugin is modifying the default feed and FVM is collapsing one whitespace too many, invalidating the XML.

    Rather than debug this, I’d rather just disable FVM for the /feed/ URL.

    Is this possible at all in the 2.x version?
    If yes, I can’t find the setting.
    If no, seems like useful for v3 ??

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Raul P.

    (@alignak)

    FVM is not supposed to do anything on the feeds… so perhaps the other plugin is doing something that it shouldn’t. What’s the plugin name?

    You can disable html minification on the feeds, by adding this to your theme functions.php file:

    # disable fvm HTML minification on feeds
    if (is_feed() && is_function('fastvelocity_min_merge_header_scripts')){
    	remove_action('template_redirect', 'fastvelocity_min_html_compression_start', PHP_INT_MAX);
    }

    Unless that plugin is doing something, that prevents the feed from being recognized as a feed by wordpress. If the above code doesn’t work, let me know.

    Thanks

    Thread Starter Manuel Razzari

    (@manuelrazzari)

    Yeah, the HTML minification is what’s breaking the feed. But it’s another plugin that’s creating some odd XML ouput that allows our plugin to break it.

    To clarify, I don’t blame either plugin!
    It’s just some bad interaction that I feel is not worth digging into / debugging.

    Thanks for the snippet, I’ll use it right away!

    My suggestion is, since you’re doing v3, it would be nice to have an “Exclude URLs” setting, where I could specify that eg /feed/ should be entirely ignored by FVM.

    Feel free to close this issue, and thanks again!

    CP30

    (@cp30)

    i am looking for that same above mentioned feature: an exclude url feature!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude some URLs from HTML minification?’ is closed to new replies.