Protocol relative path

Posted in: Newspaper
Post count: 67

How i use protocol relative path in your theme my website use https connection. see this website http://thelogicalindian.com/ and check page source this website using protocol relative path.

Example : https://www.movzio.com/wp-includes/css/admin-bar.min.css?ver=4.1

protocol relative path example : //www.movzio.com/wp-includes/css/admin-bar.min.css?ver=4.1

currently i’m able to set protocol relative path in theme css and js file but how i can integrate in images so we can reduce the number of request

Post count: 1291

Hi,

I guess you have to find and replace the url for all existing images – https://wordpress.org/plugins/search-and-replace/
Then use a function which may change it for future uploads, unfortunately i dind’t do any tests with this, you can try this solution – https://wordpress.org/support/topic/absolute-relative-path-for-images – or look for an alternative or a plugin.

Thank you, Emil G.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.