Title: [Plugin: Logo Slider] Images HTTP on HTTPS Pages
Last modified: August 21, 2016

---

# [Plugin: Logo Slider] Images HTTP on HTTPS Pages

 *  [TheDamian](https://wordpress.org/support/users/thedamian/)
 * (@thedamian)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/plugin-logo-slider-images-http-on-https-pages/)
 * The Logo Slider plugin serves images as HTTP which is throwing warnings to browsers
   on my HTTPS pages.
 * Some examples:
 *     ```
       #prev{
       background:url(<?php echo WP_CONTENT_URL.'/plugins/logo-slider/arrows/arrow'. $wp_logo_slider_settings['arrow'].'.png'; ?>) no-repeat center;
       float:right;
       margin-right:-50px;
       }
       ```
   
 * and
 *     ```
       echo '<img src="'.$data['file_url'].'" class="logo-img" alt="" />';
       ```
   
 * I can edit logo-slider.php to fix this but it will get overwritten during an 
   update, right?
 * What is the _right_ way to fix this? Maybe a rewrite rule in .htaccess?
 * I’m returning to WP after having worked on other platforms for several years 
   so if you don’t have the time for a full explaination, just pointing me in the
   right direction would be a huge help.
 * Thanks!

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

 *  Thread Starter [TheDamian](https://wordpress.org/support/users/thedamian/)
 * (@thedamian)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/plugin-logo-slider-images-http-on-https-pages/#post-4654569)
 * Here is the filter I created to fix the http:// links in the slider itself:
 *     ```
       /** change logo slider image sources to https when pages is viewed from SSL */
       add_filter('widget_text', 'https_for_slider');
       function https_for_slider($text) {
       	if (is_ssl()) {
       		$text = str_replace('http://', 'https://', $text);
         }
       	return $text;
       }
       ```
   
 * The CSS insertion uses wp_head() which doesn’t allow for filtering, just actions.
   For now I edited the plugin file.
 * Using ob_start() as described here: [http://wordpress.org/support/topic/filter-to-grab-wp_head-contents](http://wordpress.org/support/topic/filter-to-grab-wp_head-contents)
   is an option, but I decided not to get into that for now.
 *  [cinemafunk](https://wordpress.org/support/users/cinemafunk/)
 * (@cinemafunk)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-logo-slider-images-http-on-https-pages/#post-4654617)
 * Thanks, TheDamian. That worked perfectly.

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

The topic ‘[Plugin: Logo Slider] Images HTTP on HTTPS Pages’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [cinemafunk](https://wordpress.org/support/users/cinemafunk/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-logo-slider-images-http-on-https-pages/#post-4654617)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
