Support » Plugin: Accordion Shortcodes » Open on mouseover ?

  • Resolved Bertrand66

    (@bertrand66)


    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Phil Buchanan

    (@philbuchanan)

    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.

    Thanks Phil, I will give it a try and will update this thread.

    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.

    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 Phil Buchanan

    (@philbuchanan)

    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 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.

    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.