Title: External css from cloudfront
Last modified: August 20, 2016

---

# External css from cloudfront

 *  Resolved [burfiboy](https://wordpress.org/support/users/burfiboy/)
 * (@burfiboy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/external-css-from-cloudfront/)
 * hi mate,
    [http://dtmvdvtzf8rz0.cloudfront.net/static/wp-rp-css/momma.css?version=2.6](http://dtmvdvtzf8rz0.cloudfront.net/static/wp-rp-css/momma.css?version=2.6)
   above link is loaded during every refresh or new page, taking some time.
 * so any way to save that css locally, so we can save one request i think(atleast
   extra dns lookup , wait time, receive time)
 * [http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/](http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [jureham](https://wordpress.org/support/users/jureham/)
 * (@jureham)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564304)
 * Hi,
 * it’s really strange that cloudfront is slow , but if it’s causing you problems
   you can copy the content of the file(momma.css) you your theme’s css(in wordpress
   dashboard under appearance->editor).
 * Best, Jure
 *  Thread Starter [burfiboy](https://wordpress.org/support/users/burfiboy/)
 * (@burfiboy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564414)
 * i want to replace this from config.php ??
 * `
    define(‘WP_RP_STATIC_BASE_URL’, ‘[http://dtmvdvtzf8rz0.cloudfront.net/static/&#8217](http://dtmvdvtzf8rz0.cloudfront.net/static/&#8217););
   define(‘WP_RP_STATIC_THEMES_PATH’, ‘wp-rp-css/’); define(‘WP_RP_STATIC_JSON_PATH’,‘
   json/’);
 * then i just need to add momma.css content in my theme style..?
 *  Thread Starter [burfiboy](https://wordpress.org/support/users/burfiboy/)
 * (@burfiboy)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564536)
 * bump
 *  [silvoslaf](https://wordpress.org/support/users/silvoslaf/)
 * (@silvoslaf)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564545)
 * Hey!
 * Try to replace the 408 line of code from the following:
 * $output .= ‘<link rel=”stylesheet” href=”‘ . $theme_url . $platform_options[‘
   theme_name’] . ‘?version=’ . WP_RP_VERSION . ‘” />’ . “\n”;
 * to this (just add // at the beginning):
 * //$output .= ‘<link rel=”stylesheet” href=”‘ . $theme_url . $platform_options[‘
   theme_name’] . ‘?version=’ . WP_RP_VERSION . ‘” />’ . “\n”;
 * After that, copy that momma.css file into your .css file. You should be good 
   to go.
 * Let me know how it goes! 🙂
 * Take care & have a nice day!
 * Best,
    Silvo
 *  [Charlie L](https://wordpress.org/support/users/charlielivingston/)
 * (@charlielivingston)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564554)
 * This doesn’t work for me.
 * I’ve commented out the line above in wp_related_posts.php (was that the right
   place?), but as you can see the cloudfront css still loads and overrides my local
   styles: [http://responsivethemeshq.com/art-works/](http://responsivethemeshq.com/art-works/)
 * Any ideas?
 *  [silvoslaf](https://wordpress.org/support/users/silvoslaf/)
 * (@silvoslaf)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564558)
 * Hey Charlie!
 * We took a deeper look at the link you sent us and unfortunately couldn’t find
   any posts where our CSS would be loaded from Cloudfront.
 * The styles on our related posts are included in the following file:
 * [http://responsivethemeshq.com/wp-content/themes/modern-portfolio/style.css?ver=1.9.1](http://responsivethemeshq.com/wp-content/themes/modern-portfolio/style.css?ver=1.9.1)
 * Can you point us to the right blogposts where our CSS would still be loaded?
 * Thanks for all you help!
 * Best,
    Silvo
 *  [thecookiemonster](https://wordpress.org/support/users/thecookiemonster/)
 * (@thecookiemonster)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564583)
 * Hi, i was having SSL issues with this pluggin, more specifically the cloudfront
   url mentioned by the OP.
    I applied the fix as mentioned above by the Author “(
   just add // at the beginning):” and it worked great for my purposes.
 * Just thought i would share. Thanks for the awesome plugin!
 *  [silvoslaf](https://wordpress.org/support/users/silvoslaf/)
 * (@silvoslaf)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564586)
 * Hey!
 * Fortunately we are aware of this problem and are already working on a fix that
   should be ready for release in the coming weeks. We sure hope it’ll be ready 
   for the next update. Please bear with us until then.
 * Thanks for bringing this up to us and for your patience — much appreciated!
 * And do let me know if you have any other questions regarding our service — as
   always, I’ll gladly help!
 * Take care & have a nice weekend!
 * Best,
    Silvo

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘External css from cloudfront’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-23-related-posts-plugin_7b9a7c.
   svg)
 * [WordPress Related Posts](https://wordpress.org/plugins/wordpress-23-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-23-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-23-related-posts-plugin/reviews/)

 * 8 replies
 * 5 participants
 * Last reply from: [silvoslaf](https://wordpress.org/support/users/silvoslaf/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/external-css-from-cloudfront/#post-3564586)
 * Status: resolved