WordPress.org

Ready to get started?Download WordPress

Forums

Unique Headers
Does this plugin serve header images with relative urls? (2 posts)

  1. photocurio
    Member
    Posted 1 year ago #

    I've been frustrated trying to add e-commerce to a site because the header images are called with absolute urls. This breaks the page's SSL, resulting in a security warning popping up for the visitor.

    I need a way to have header images coded with:
    src="/wp-content/uploads/2012/08/vista.jpg"
    instead of:
    src="http://mywebsite.com/wp-content/uploads/2012/08/vista.jpg"

    Can this plugin do that?

    http://wordpress.org/extend/plugins/unique-headers/

  2. Ryan Hellyer
    Member
    Plugin Author

    Posted 1 year ago #

    No. Using relative URLs is the wrong way to go about fixing that issue. If a plugin is coded correctly, it should handle https URLs just fine. The problem is usually caused by plugins making use of the WP_PLUGIN_URL constant rather than the function (which I can't remember the name of right now) which checks if the page is using https or not and serves the corresponding URL accordingly.

    So to answer your question ... no it does not use relative URLs, but it should work just fine for your purposes anyway.

    Sorry for not replying sooner btw, I was on holiday in New Zealand when you posted this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic