Title: Works nicely, small fix required for https
Last modified: October 31, 2021

---

# Works nicely, small fix required for https

 *  [aleenakhani](https://wordpress.org/support/users/aleenakhani/)
 * (@aleenakhani)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/works-nicely-small-fix-required-for-https-2/)
 * I’m using the plugin on my site and results look great. Our site is sometimes
   accessed with http and sometimes with https. Chrome would complain that insecure
   content was loaded when in https [site](https://www.jbbatteryportugal.com/). 
   The wp_enqueue_style and wp_enqueue_script use the constant WP_PLUGIN_URL that
   does not take this into account. I’ve changed to use plugins_url(). Et voila!
   Would be a good fix for the next version.

The topic ‘Works nicely, small fix required for https’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [aleenakhani](https://wordpress.org/support/users/aleenakhani/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/works-nicely-small-fix-required-for-https-2/)
 * Status: not resolved