Title: [Plugin: SidePosts Widget] Sidepost and calling the stylesheet via https
Last modified: August 19, 2016

---

# [Plugin: SidePosts Widget] Sidepost and calling the stylesheet via https

 *  [mogmismo](https://wordpress.org/support/users/mogmismo/)
 * (@mogmismo)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-sidepost-and-calling-the-stylesheet-via-https/)
 * The stylesheet is called via http:// even if the sidepost widget is embedded 
   in an https page, causing the entire site to have the browser “Mixed http/https
   content” issue and users to loose confidence with the system.
 * I’ve hardcoded in currently:
 *     ```
       /*
       OLD STYLE CALL
       wp_register_style($this->ID, $url, false, $this->p_data['Version']);
       */
       // NEW STYLE CALL
       wp_register_style($this->ID, '/blog/wp-content/plugins/sideposts/style.css?ver=2.0.3', false, $this->p
       _data['Version']);
       ```
   
 * temporarily, but I know this will get broken net time the plugin updates. Can
   you put a check for http/https here in the code?
 * Thanks for your great work on this plugin.
 * M.
 * [http://wordpress.org/extend/plugins/sideposts/](http://wordpress.org/extend/plugins/sideposts/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [mogmismo](https://wordpress.org/support/users/mogmismo/)
 * (@mogmismo)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-sidepost-and-calling-the-stylesheet-via-https/#post-1076630)
 * I’ve upgraded the plugin to see if https is fixed, but alas not. Code for the
   new plugin version had to be changed again, but different this time:
 *     ```
       if ( file_exists($this->p_dirs['path'] . 'style.css') ) {
                                               //$url = $this->p_dirs['url'] . 'style.css';
                                               $url =  '/wp-content/plugins/sideposts/style.css?ver=2.1.4';
                                       }
       ```
   
 * Any chance of having final function _enqueueStyles() be smart about if http/https
   is used?
 * Thanks,
 * -Mog
 *  Thread Starter [mogmismo](https://wordpress.org/support/users/mogmismo/)
 * (@mogmismo)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-sidepost-and-calling-the-stylesheet-via-https/#post-1076652)
 * Hmmm… Had to apply the same fix on 2.4 as w/ 2.1.4.
 * Any ideas? Other plugins handle switching between http and https Ok.
 * Thanks,
 * -Mog

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: SidePosts Widget] Sidepost and calling the stylesheet via https’
is closed to new replies.

 * 2 replies
 * 1 participant
 * Last reply from: [mogmismo](https://wordpress.org/support/users/mogmismo/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-sidepost-and-calling-the-stylesheet-via-https/#post-1076652)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
