Title: Problem with JavaScript on SSL pages
Last modified: August 21, 2016

---

# Problem with JavaScript on SSL pages

 *  [peterfeatherstone](https://wordpress.org/support/users/peterfeatherstone/)
 * (@peterfeatherstone)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-javascript-on-ssl-pages/)
 * Hi there,
 * First of all thanks for the plugin, its great!
 * I just have one query. The JS files included on the site don’t seem to account
   for SSL pages, so it would load them as “[http://&#8221](http://&#8221); rather
   than “[https://&#8221](https://&#8221); resources, which causes JavaScript to
   not load properly and cause insecure content issues on site.
 * I have corrected this by changing:
 *     ```
       function get_plugin_directory(){
             return WP_PLUGIN_URL . '/jquery-vertical-accordion-menu';
       }
       ```
   
 * to:
 *     ```
       function get_plugin_directory(){
             return plugins_url() . '/jquery-vertical-accordion-menu';
       }
       ```
   
 * Please see the bug here:
    [https://core.trac.wordpress.org/ticket/13941](https://core.trac.wordpress.org/ticket/13941)
 * Could this be changed for future versions as when I update the plugin this will
   obviously be overwritten?
 * Again, many thanks for the plug-in, its much appreciated!
 * Thanks
 * Peter
 * [https://wordpress.org/plugins/jquery-vertical-accordion-menu/](https://wordpress.org/plugins/jquery-vertical-accordion-menu/)

The topic ‘Problem with JavaScript on SSL pages’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [peterfeatherstone](https://wordpress.org/support/users/peterfeatherstone/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-javascript-on-ssl-pages/)
 * Status: not resolved