Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Is that fixed by switching theme to another one?

    I have the same problem, with the help of Firebug, the plugin get the wrong paths to the CSS and JS files.

    I’m using Roots theme, this theme have a script to clean the URL’s files, something that have bugs with some plugins, but with this plugin all was working fine until last update (3.1.2)

    I’m trying fix this.

    —— UPDATE
    THIS IS A HACK, NO A REALLY SOLUTION

    – Edit the file controller.php (wp-content/plugins/contact-form-7/includes)
    – Find the lines (233, 240 and 262)

    Change this:
    wp_enqueue_script( 'contact-form-7', wpcf7_plugin_url( 'scripts.js' ),

    To this:
    wp_enqueue_script( 'contact-form-7', '/wp-content/plugins/contact-form-7/scripts.js',

    Note that you must change the 3 lines, but check the file name, there 3 files.

    And again, this work for me with the Roots Theme and last version of WP and CF7

    Thread Starter mediaprime

    (@mediaprime)

    I tried this and still the same thing, nothing has changed.
    Is there any way to after send the form, the success message appears in a pop-up for example and not reloading the page?

    Ammm, that happen becuase it cant load the .js file to do the request via AJAX and stop the reloading page I think. Do you know how use Firebug? On the console tab it can show you from where is trying get the .js file and then make the hack to the correct path.

    Other way is view the source code of the page and ctr+F to find ‘contact-form-7’ and see if the path source is correct. If it is correct, try disable all plugins extras you have, maybe is a jQuery conflict or somenthing like that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Contact Form 7] Lost of page CSS and Style’ is closed to new replies.