Soliloquy Documentation

Documentation, Reference Materials, and Tutorials for Soliloquy

Add SSL Support to Soliloquy Images

By default, SSL support is absent for images in Soliloquy because of a bug in WordPress.

To fix this, just drop this code in your active theme’s functions.php file:

add_filter( 'soliloquy_image_src', 'tgm_soliloquy_https_url' );
function tgm_soliloquy_https_url( $src ) {
    return is_ssl() ? str_replace( 'http://', 'https://', $src ) : $src;