I have a very basic page template that does not call the regular page footer. What code can I add to this template so the .js will load?
Thanks!
I have a very basic page template that does not call the regular page footer. What code can I add to this template so the .js will load?
Thanks!
This is complete untested (and officially unsupported) but you'll have to add a link to the plugin script wp-content/plugins/accordion-shortcodes/accordion.min.js
. You'll also have to manually add the accordion options to a script tag immediately before the accordion.min.js
script. Any settings set on the opening shortcode will be ignored. Here is what the defaults look like:
var accordionShortcodesSettings = [ { 'id': 'accordion-1', 'autoClose': true, 'openFirst': false, 'openAll': false, 'clickToClose': false, 'scroll': false }
];
Also note that if you add multiple accordions to a single page you'll need to add one JavaScript object to the accordionShortcodesSettings
array for each.
برچسب : نویسنده : استخدام کار wpss بازدید : 86