WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Related Posts
[resolved] External css from cloudfront (9 posts)

  1. burfiboy
    Member
    Posted 1 year ago #

    hi mate,
    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/

  2. jureham
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. burfiboy
    Member
    Posted 1 year ago #

    i want to replace this from config.php ??

    `
    define('WP_RP_STATIC_BASE_URL', 'http://dtmvdvtzf8rz0.cloudfront.net/static/');
    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..?

  4. burfiboy
    Member
    Posted 1 year ago #

    bump

  5. silvoslaf
    Member
    Plugin Author

    Posted 1 year ago #

    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

  6. CharlieLivingston
    Member
    Posted 1 year ago #

    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/

    Any ideas?

  7. silvoslaf
    Member
    Plugin Author

    Posted 1 year ago #

    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

    Can you point us to the right blogposts where our CSS would still be loaded?

    Thanks for all you help!

    Best,
    Silvo

  8. thecookiemonster
    Member
    Posted 1 year ago #

    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!

  9. silvoslaf
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.