• Resolved marcusds

    (@marcus1060)


    Can you please change 372 of funclib.php
    from:
    echo ‘<link rel=”stylesheet” id=”wp-forecast-css” href=”‘. $plugin_url . $def . ‘” type=”text/css” media=”screen” />’ .”\n”;

    to:
    wp_enqueue_style(‘wp-forecast’, $plugin_url . $def, array(), ‘5.5’);

    This way the CSS loads in the correct location with all other CSS and if users like, we can replace the CSS properly without having to modify the plugin. Thanks.

    https://wordpress.org/plugins/wp-forecast/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Are you sure this works with wp-forecast in articles and pages too?

    Thread Starter marcusds

    (@marcus1060)

    It works for me in a page and in a shortcode I put in a header. Haven’t tried an article, but there really should be no reason for it not to work. Really it does it the same way, just the way you are supposed to in WordPress.

    Plugin Author tuxlog

    (@tuxlog)

    Yep, you are wright. Will add it to the next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestion: Enqueue Style’ is closed to new replies.