WordPress.org

Ready to get started?Download WordPress

Forums

Find Me On
Code error: trying to load incorrect css? (2 posts)

  1. knightnet
    Member
    Posted 2 years ago #

    There appears to be an error in the code.

    Line 536 of find-me-on.php contains:

    echo '<link type="text/css" rel="stylesheet" href="' . $findmeonplugindir . '/stylesheet.css" />' . "\n";

    But this doesn't exist and trying to call it adds significant overhead to the page load.

    I have changed it to:

    echo '<link type="text/css" rel="stylesheet" href="' . $findmeonplugindir . '/css/style.css" />' . "\n";

    which gets rid of the problem. However, surely this should be using wp_enqueue_style? This would allow a number of efficiency gains to be made. The same is true of the JS.

    http://wordpress.org/extend/plugins/find-me-on/

  2. knightnet
    Member
    Posted 2 years ago #

    In fact, looking more closely at the code, the whole thing is naff. Sorry, I know you've put a lot of effort in and it does look nice. But it is just to inefficient.

    Sad to say, I'm stripping it all out and putting in static links instead.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags