rddigital
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] wpcf7.initForm is not a function@takayukister any news on that fix? problem is still here. I have to replace scripts.js on every website. My situation is using CF7 + W3 Total Cache and deferring js. Chrome shows error, Firefox not.
Hi Takayuki, i had same problem. I resolved following this https://bensinger.me/contact-form-7-fixing-wpcf7-initform-not-function-error/. But a plugin update with this fix should be best solution.
I think problem there is whith W3 Total Cache, js minify and defer (i have this situation)
- This reply was modified 4 years, 9 months ago by rddigital.
Forum: Plugins
In reply to: [W3 Total Cache] How to change minified css file name?I modified the code, because it loaded every time a different filename
add_action( 'w3tc_flush_all', 'action_w3tc_flush_all', 10, 1 ); function action_w3tc_flush_all(){ $vers = "v_".date("Y_m_d_H_i_s")."_"; update_option( "w3_files_version", $vers); } add_filter('w3tc_minify_urls_for_minification_to_minify_filename', 'w3tc_filename_filter', 20, 3); function w3tc_filename_filter($minify_filename, $files, $type ){ $vers = get_option("w3_files_version"); if($vers == NULL || $vers == ""){ $vers = "v_".date("Y_m_d_H_i_s")."_"; update_option( "w3_files_version", $vers); } $minify_filename = $vers.$minify_filename; return $minify_filename; }
Forum: Plugins
In reply to: [W3 Total Cache] How to change minified css file name?I had js errors with Daniele’s version. And i didn’t want use theme version (i developed a theme and if a save an option i don’t change theme version) so i used this code
add_filter('w3tc_minify_urls_for_minification_to_minify_filename', 'w3tc_filename_filter', 20, 3); function w3tc_filename_filter($minify_filename, $files, $type ){ $vers = "v_".date("Y_m_d_H_i_s")."_"; $minify_filename = $vers.$minify_filename; return $minify_filename; }