Rejean
Forum Replies Created
-
Anyone else know how to do this ?
The only idea I found so far would be to create several empty site (.ca | .net | .edu) and redirecting them to a single .com for exemple.
I would like to see WordPress be able to accept several domain as the same.
Yes the idea is having several .ca .net .com .org to point to the same site. (not a blog per say).
The proposed solution @florianziegler and @larrydaniele is that
you need to modify wp-content/plugins/contact-form-7/includes/functions.php
and at the last line you add this code below…function my_register_cf7_js() { // Dequeue cf5 and recaptcha scripts, preventing them from loading everywhere add_filter( 'wpcf7_load_js', '__return_false' ); // Might as well use their filter wp_dequeue_script( 'google-recaptcha' ); // If current post has cf7 shortcode, enqueue! global $post; if ( isset( $post->post_content ) AND has_shortcode( $post->post_content, 'contact-form-7' ) ) { if ( function_exists( 'wpcf7_enqueue_scripts' ) ) { wpcf7_enqueue_scripts(); wp_enqueue_script( 'google-recaptcha' ); } } } add_action( 'wp_enqueue_scripts', 'my_register_cf7_js', 20, 0 );
My question is what will happen when Contact Form 7 is updated again? Will this functions.php file be updated and lost our modification ?
Is there a custom/functions.php somewhere?
Should this be added to CF7 next update?
Can this me made an option or another plugin?thank you very much for this solution and all the help.
- This reply was modified 5 years, 8 months ago by Rejean.
domain in french is domaine… how come I cant modify my post?
There is nothing urgent for me since it’s still working. I am only here to share my experience and try to help others in the same situation.
I just updated to WP 3.5.2 and since the file I modified wp-admin/admin.php was not changed or replaced, the solution I provided is still working for me.
Since the last 2 weeks I have been looking around a bit and yet did not find a reason for that behavior. I Additionally looked at Version 3.5.2 for fixes and security issues but since none change wp-admin/admin.php I am still failing to find any explanation.
regards!
Dear esmi. Thank you for the comment but bell I AM the host, I am the SysAdmin and I and the webmaster and the blogger (this is for my technical blog). Yes I understand this is not the real solution but…
Have you read my post saying that WP, MYSQL, APACHE, PHP was reverted to several prior state where it was working before but all failed. Nothing seams to do it. This is the only fix I found on this forum (other thread mentionned) that actually worked.
In fact nothing much changed on that server (or I can’t find it), I spent days looking at several possibilities without success.
If this method work for anyone in the same situation Well let be IT until we figure out the real reason. At least I was able to enter my Dashboard (WP Admin pannel).
So if any one has any idea I am willing to try it!
[No bumping. If it’s that urgent, consider hiring someone.]