0

What is the best way to Change links beginning from http:// to "//" so that https site can get correct CSS/JS files ?

I want visitors to either http:// or https:// can see correct CSS.

I want to do that by changing all refrences to js and css files to start with "//"

What is the best way to do this ?

so that they become:

src="//www.example.com/some-css.css"

  • Are you talking about enqueued css/js from plugins/theme, or are these coming from somewhere else? – Matt Keys Nov 8 '14 at 6:27
  • @MattKeys I guess the css/js coming from themes and plugins, not sure what you mean with somewhere else. – sharp12345 Nov 9 '14 at 22:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.