WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
[resolved] [Plugin: WordPress HTTPS] HTTPs for background-images in CSS (2 posts)

  1. klaernie
    Member
    Posted 3 years ago #

    Hi,

    I was currently developing a site for a security group, so it was necessary to make the website available via https.

    I found you plugin, wich works like a charm, exept for one thing:

    When the theme uses CSS "background-image: url()" for assigning images, these image links won't be converted to https-links as all regular "img src="-links.

    Is it possible to add this functionality?

    kind regards,

    Andre

  2. Mvied
    Member
    Plugin Author

    Posted 3 years ago #

    The reason I left this functionality out is because I couldn't really imagine a situation where simply changing the stylesheet wouldn't be a sufficient fix.

    If the stylesheet has absolute paths to images and they're hosted on your domain, just make them relative. If the images are not hosted on your domain, just change them to load over https if they can be all the time, it won't harm anything. If they can't be, my plugin wouldn't be able to fix them anyways.

    However, if you can give me an example where neither of those would fix the issue, I may be able to add the functionality.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic