Transforms enqueued CSS and JavaScript theme URLs to use protocol-relative paths.
As of April 2026, Protocol Relative Theme Assets is a WordPress script plugin with 20 active installations and a 4/5 rating from 2 reviews. It has been downloaded 2.9K+ times in total. Requires WordPress 3.6+ and PHP false+. Available on WordPress.org since 2014. Last updated 11 years ago — may have compatibility concerns. Top alternative: Head & Footer Code.
This plugin transforms any registered, enqueued CSS or JavaScript URLs into their “protocol-relative” equivalent.
Consider the following examples:
Protocol Relative CSS URL
<link href="//example.com/wp-content/themes/twentytwelve/style.css" />
Protocol Relative Javascript URL
<script src="//example.com/wp-includes/js/jquery/jquery.js"></script>
More appropriately called a “network-path reference” or “scheme-relative path”, a protocol-relative URL helps to avoid common scenarios such as:
Th…
| WordPress | 3.6+ requiredTested up to 4.0.38 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.