“Inline All CSS” option breaks URLs with Forms
-
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]
-
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/wpformin them.hope this helps,
frankHi,
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?Weird … can you copy/paste the exact code you used and can you tell me where/how you added it?
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/kbmj7gah, but you need to adapt
page/wpformto something that matches the URL on which you have the wpforms Musassar 🙂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.
happy it works Mudassar, feel free to leave a review of the plugin and support here! 🙂
The topic ‘“Inline All CSS” option breaks URLs with Forms’ is closed to new replies.