Gaia Clary
asked 10 years ago

I use the symple_shortcodes plugin which provides also a jquery based toggle box. The problem is that this toggle box does not open when i use it inside of a question or answer. I have no clue how to solve this issue.Here are 2 example pages:

broken: http://blog.machinimatrix.org/questions/i-lost-my-download-link-2/
works: http://blog.machinimatrix.org/faq/how-can-i-get-back-my-download-link/

How could this be inspected further? Where to look at?

2 Answers
DominicStaff
answered 10 years ago

I know what you want to resolve, however, unfortunately, we don’t support for the third party plugin.
Regards,

Gaia Clary
replied 10 years ago

Could you give a hint where to search for the cause ? Is it an issue with the symple_shortcodes plugin or an issue with the DW q&a Plugin?

Gaia Clary
answered 10 years ago

There is one simple workaround for this:   I edited the file functions.php in the root folder of my child theme. There i added the following code:

function enable_toggle_script() {
        wp_enqueue_script( ‘symple_toggle’);

}

add_action( ‘wp_enqueue_scripts’, ‘enable_toggle_script’);

This adds the javascript for the symple_shortcodes toggle_boxes to every page. I got this tip from the freenode #wordpress chatroom (thanks again to fris!)  For me this workaround is ok because we use the toggle boxes very frequently. However it still would be good to understand why the DW q&a plugin suppresses the importing of this script in first place. I tested with other forum plugins and there the toggle boxes worked without the above described workaround.

Powered by DW Question & Answer Pro