• Resolved Mudassar

    (@mudassar)


    Hi,
    When I activate Inline All CSS options under the ‘CSS Options’ my links with the forms embedded in them do not open. Those pages do not load.
    http://prntscr.com/kaz8jg
    How can I exclude those URLs with forms embedded in them to work while this option is activated? By the way, I use WPForm Lite. Both the plugins have been working properly until I activated this option.

    The page I need help with: [log in to see the link]

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

    (@optimizingmatters)

    you can exclude pages from being autoptimized based on the path, e.g.

    
    add_filter('autoptimize_filter_noptimize','Mudassar_noptimize',10,0);
    function Mudassar_noptimize() {
    	if (strpos($_SERVER['REQUEST_URI'],'page/wpfrom/')!==false) {
    		return true;
    	} else {
    		return false;
    	}
    }

    would stop AO on all URL’s that have page/wpform in them.

    hope this helps,
    frank

    Thread Starter Mudassar

    (@mudassar)

    Hi,
    Thank you for the reply. I tried the code in function.php but it didn’t seem to work. Is there any other thing we need to add in this code?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Weird … can you copy/paste the exact code you used and can you tell me where/how you added it?

    Thread Starter Mudassar

    (@mudassar)

    Hi,
    I used it at the end of function.php on morenews.pk and following the screenshot of the code i used.
    http://prntscr.com/kbmj7g

    Plugin Author Frank Goossens

    (@futtta)

    ah, but you need to adapt page/wpform to something that matches the URL on which you have the wpforms Musassar 🙂

    Thread Starter Mudassar

    (@mudassar)

    oops…yeah, you are right. I was so dumb. It worked. Much thanks. And I also tried to put multiple pages with commas and they also worked. Thanks again.

    Plugin Author Frank Goossens

    (@futtta)

    happy it works Mudassar, feel free to leave a review of the plugin and support here! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“Inline All CSS” option breaks URLs with Forms’ is closed to new replies.