All The links declared are set to :// instead of http:// even though they have https added in the code. This is causing a issue with AMP page validation. Is there a way i can force http:// here?
closed as off-topic by Mark Kaplun, TheDeadMedic, bueltge, kaiser Sep 11 '16 at 13:14
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers' support routes." – Mark Kaplun, TheDeadMedic, bueltge, kaiser
When you are on HTTP and your browser requests an external script using hardcoded HTTPS, it safe. When you do otherwise, it's not safe. So, the best practice is not to hardcode the protocol in your code.
Safety is No. 1 priority, validation is secondary. So, keep relative
// instead of explicit
Or, you can move your site to SSL and use
https:// in every link.