Title: Open on mouseover ?
Last modified: August 22, 2016

---

# Open on mouseover ?

 *  Resolved [Bertrand66](https://wordpress.org/support/users/bertrand66/)
 * (@bertrand66)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/open-on-mouseover/)
 * Hi Phil,
 * Thanks for this plugin, I was able to do all settings just by reading this support
   section, whould it be for one.
 * I am trying to have the accordion openning when the viewer’s screen arrives where
   it is placed. I bet the command is “on mouseover”, yet can you let me know in
   which file do I have to act for this ?
 * Thanks in advanced.
 * [https://wordpress.org/plugins/accordion-shortcodes/](https://wordpress.org/plugins/accordion-shortcodes/)

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

 *  Plugin Author [philbuchanan](https://wordpress.org/support/users/philbuchanan/)
 * (@philbuchanan)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/open-on-mouseover/#post-5512138)
 * Unfortunately the plugin doesn’t currently support on mouseover events.
 * If you are comfortable modifying the code, you can find the on click event in
   the `accordion.js` file. Please note that you will need to update the minified
   version as well (`accordion.min.js`) if you want to make changes as the plugin
   will load that version by default.
 *  Thread Starter [Bertrand66](https://wordpress.org/support/users/bertrand66/)
 * (@bertrand66)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/open-on-mouseover/#post-5512248)
 * Thanks Phil, I will give it a try and will update this thread.
 *  Thread Starter [Bertrand66](https://wordpress.org/support/users/bertrand66/)
 * (@bertrand66)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/open-on-mouseover/#post-5512326)
 * Sorry, did my best but it was a mess …..
 * Could you let me know where are the code lines to change (and what to change 
   with) ?
 * Thanks in advanced.
 *  [bigwavemaui](https://wordpress.org/support/users/bigwavemaui/)
 * (@bigwavemaui)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/open-on-mouseover/#post-5512504)
 * Adding an optional mouseover event would be a GREAT improvement to this plugin.
   Hints on how to modify the accordion.js file and the accordion.min.js files would
   be greatly appreciated!
 * Thanks!
 *  Plugin Author [philbuchanan](https://wordpress.org/support/users/philbuchanan/)
 * (@philbuchanan)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/open-on-mouseover/#post-5512505)
 * I’ve looked into adding this and it’s not something I want to fully support with
   the plugin for a few reasons.
 * However, it should be fairly easy to modify the JavaScript to handle `mouseover`
   instead of `click`. You’ll find the `click` handler on [line 51](https://github.com/philbuchanan/Accordion-Shortcodes/blob/master/accordion.js#L51)
   of `accordion.js` (as of version 2.1.1). Simply changing that to `mouseover` 
   should work, although I have not tested this.
 * In the minified version just do a search for `click(function()` and you’ll find
   the part you need to change there.
 *  [bigwavemaui](https://wordpress.org/support/users/bigwavemaui/)
 * (@bigwavemaui)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/open-on-mouseover/#post-5512506)
 * Hi,
 * Thanks! I’m going to spend some time on this.
 * Brian

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

The topic ‘Open on mouseover ?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accordion-shortcodes.svg)
 * [Accordion Shortcodes](https://wordpress.org/plugins/accordion-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accordion-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accordion-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/accordion-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordion-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordion-shortcodes/reviews/)

## Tags

 * [mouseover](https://wordpress.org/support/topic-tag/mouseover/)

 * 6 replies
 * 3 participants
 * Last reply from: [bigwavemaui](https://wordpress.org/support/users/bigwavemaui/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/open-on-mouseover/#post-5512506)
 * Status: resolved