Title: Protocol Relative Theme Assets
Author: ryanjbonnell
Published: <strong>21. meje 2014</strong>
Last modified: 21. meje 2014

---

Tykače pytać

Tutón tykač **njeje so z najnowšimi 3 hłownymi wersijemi WordPress testował**. Snano
so hižo njewothladuje abo njepodpěruje a ma problemy z kompatibelnosću, hdyž so 
z nowšimi wersijemi WordPress wužiwa.

![](https://s.w.org/plugins/geopattern-icon/protocol-relative-theme-assets.svg)

# Protocol Relative Theme Assets

 Wot [ryanjbonnell](https://profiles.wordpress.org/ryanjbonnell/)

[Sćahnyć](https://downloads.wordpress.org/plugin/protocol-relative-theme-assets.zip)

 * [Podrobnosće](https://hsb.wordpress.org/plugins/protocol-relative-theme-assets/#description)
 * [Pohódnoćenja](https://hsb.wordpress.org/plugins/protocol-relative-theme-assets/#reviews)
 *  [Instalacija](https://hsb.wordpress.org/plugins/protocol-relative-theme-assets/#installation)
 * [Wuwiće](https://hsb.wordpress.org/plugins/protocol-relative-theme-assets/#developers)

 [Podpěra](https://wordpress.org/support/plugin/protocol-relative-theme-assets/)

## Wopisanje

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:

 * Broken SSL padlock icon in browser’s address bar when showing mixed HTTP/HTTPS
   content
 * Error message in Internet Explorer saying, „This Page Contains Both Secure and
   Non-Secure Items“
 * Serving HTTP assets when viewing HTTPS pages

The idea of using protocol-relative URLs was popularized by [Paul Irish](http://paulirish.com/2010/the-protocol-relative-url/)
and has become common as sites switch between serving HTTP and HTTPS assets.

This plugin will standardize all properly enqueued theme files to use protocol-relative
paths, even those added from third-party plugins.

_Note: This plugin does not transform any image paths that may be embedded in the
WordPress editor or output as featured images or elsewhere in the theme — it presently
only works on enqueued CSS/JavaScript files._

## Instalacija

 1. Activate the plugin through the Plugins menu in the WordPress admin.

## Pohódnoćenja

![](https://secure.gravatar.com/avatar/83ef055bef15d30db182397f553017f10b84c5dea03f0b493c2b013f8bb7a2f9?
s=60&d=retro&r=g)

### 󠀁[Still works with 4.3.](https://wordpress.org/support/topic/still-works-with-43/)󠁿

 [massafiri](https://profiles.wordpress.org/massafiri/) 3. septembra 2016

Life saving plugin. After moving to HTTPs, a lot of the assets from Masterslider
broke and caused very broken looking homepages. Installation of this plugin fixed
that, no configuration required. As fabian mentioned, this won’t update the images
on the site to pull from HTTPs.. but it’s not designed to do that, and many images
are hard coded by your CSS; so it’s hardly fair to give this plugin less than 5 
stars as it does exactly as it promises.

 [ Čitajće 2 pohódnoćeni ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/)

## Sobuskutkowarjo a wuwiwarjo

„Protocol Relative Theme Assets“ je softwara wotewrjeneho žórła. Slědowacy ludźo
su k tutomu tykačej přinošowali.

Sobuskutkowarjo

 *   [ ryanjbonnell ](https://profiles.wordpress.org/ryanjbonnell/)

[Přełožće „Protocol Relative Theme Assets“ do swojeje rěče.](https://translate.wordpress.org/projects/wp-plugins/protocol-relative-theme-assets)

### Na wuwiću zajimowany?

[Přehladajće kod](https://plugins.trac.wordpress.org/browser/protocol-relative-theme-assets/),
hladajće do [SVN-repozitorija](https://plugins.svn.wordpress.org/protocol-relative-theme-assets/)
abo abonujće [wuwiwanski protokol](https://plugins.trac.wordpress.org/log/protocol-relative-theme-assets/)
přez [RSS](https://plugins.trac.wordpress.org/log/protocol-relative-theme-assets/?limit=100&mode=stop_on_copy&format=rss).

## Protokol změnow

#### 1.0

 * Initial release

## Meta

 *  Version **1.0**
 *  Last updated **12 lět**
 *  Active installations **20+**
 *  WordPress version ** 3.6 abo nowši **
 *  Tested up to **4.0.38**
 *  Language
 * [English (US)](https://wordpress.org/plugins/protocol-relative-theme-assets/)
 * Tags
 * [javascript](https://hsb.wordpress.org/plugins/tags/javascript/)[Protocol](https://hsb.wordpress.org/plugins/tags/protocol/)
   [relative](https://hsb.wordpress.org/plugins/tags/relative/)[script](https://hsb.wordpress.org/plugins/tags/script/)
   [stylesheet](https://hsb.wordpress.org/plugins/tags/stylesheet/)
 *  [Rozšěrjeny napohlad](https://hsb.wordpress.org/plugins/protocol-relative-theme-assets/advanced/)

## Pohódnoćenja

 4 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/protocol-relative-theme-assets/reviews/)

## Sobuskutkowarjo

 *   [ ryanjbonnell ](https://profiles.wordpress.org/ryanjbonnell/)

## Podpěra

Chceće něšto prajić? Trjebaće pomoc?

 [Forum pomocy pokazać](https://wordpress.org/support/plugin/protocol-relative-theme-assets/)

## Darić

Chceće dalewuwiwanje tutoho tykača podpěrać?

 [ Za tutón tykač darić ](https://www.gittip.com/ryanjbonnell/)