Viewing 5 replies - 1 through 5 (of 5 total)
  • Roy Ho

    (@splashingpixelscom)

    Hello,

    Why do you feel that is incorrect? It is a perfectly valid way to load external resources. It is better known as “protocol-less” relative URL.

    Doing so makes it easier to switch between HTTP and HTTPS. You will see Google use this method quite often especially from their CDN resources such as the jQuery libraries and more.

    Thread Starter garymchu

    (@garymchu)

    The problem is it is preventing maxcdn from being able to deliver those style sheets, their words not mine.

    Thread Starter garymchu

    (@garymchu)

    Correction they think WP super cache is not picking it up here are their words

    Mitchell Harding Sorry about that, It may be related to WP Super Cache not picking up the file. 5:18
    Because the source code looks like this for the files from woo commerce: href=’//discountkids.co.uk/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css’ <http://discountkids.co.uk/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css’&gt;
    when it should really be: href=‘http://discountkids.co.uk/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css’
    Im thinking because there is no http: WP Super cache isn’t able to pick it up

    Thread Starter garymchu

    (@garymchu)

    Can anyone advise me where to edit this code? We have W3 cache and Max CDN we need standard urls so they can be detected and re-written by the caching plugin.

    The required file is:
    wc-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php

    The required edits are on lines 29, 35 & 41. Replace ” with ‘http:’

    Protecting your edits from the next WooCommerce update is another question.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Incorrect Calls to style sheets’ is closed to new replies.