Title: [Plugin: Contact Form 7] if having different plugins path
Last modified: August 19, 2016

---

# [Plugin: Contact Form 7] if having different plugins path

 *  Resolved [Tavy315](https://wordpress.org/support/users/tavy315/)
 * (@tavy315)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-if-having-different-plugins-path/)
 * Looking into /contact-form-7/admin/wpcf7-admin.js file, there is:
 * `var dropdown_icon = jQuery('<img src="../wp-content/plugins/contact-form-7/images/
   dropdown.gif" />');`
 * which doesn’t work if having a different path for plugins directory. I had to
   manually modify to:
 * `var dropdown_icon = jQuery('<img src="../plugins/contact-form-7/images/dropdown.
   gif" />');`
 * in order to work for me, as I have website.tld/plugins/ instead of website.tld/
   wp-content/plugins/. Anyway to correct this so I wouldn’t have to modify the 
   code everytime I update Contact Form 7 ?
 * Thanks,
    Octav

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-if-having-different-plugins-path/#post-1249564)
 * If you leave the plugin folder where WordPress expects to find it you won’t have
   that problem. Its not the only plugin expecting its files to be in the plugin
   folder designated by WP.
 * That is the best way correct this so you wouldn’t have to modify the code everytime
   you update Contact Form 7.
 *  [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-if-having-different-plugins-path/#post-1249566)
 * Thanks. I’ll fix it.
 *  Thread Starter [Tavy315](https://wordpress.org/support/users/tavy315/)
 * (@tavy315)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-if-having-different-plugins-path/#post-1249605)
 * [@stvwlf](https://wordpress.org/support/users/stvwlf/): You can define the plugin
   dir in config.php as follows:
    define( ‘WP_PLUGIN_DIR’, ABSPATH . ‘/plugins’ );
   So why not to use that? Looks better on my website…
 * [@takayukister](https://wordpress.org/support/users/takayukister/): thanks for
   replying.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Contact Form 7] if having different plugins path’ is closed 
to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [Tavy315](https://wordpress.org/support/users/tavy315/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-if-having-different-plugins-path/#post-1249605)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
