• in:
    function wp_syntax_head() {

    replace:
    $css_url = WP_PLUGIN_URL . "/wp-syntax/wp-syntax.css";
    with:
    $css_url = plugins_url('wp-syntax.css', __FILE__);

    and replace:
    echo "\n".'<link rel="stylesheet" href="' . $css_url . '" type="text/css" media="screen" />'."\n";
    with:
    wp_enqueue_style('wp-syntax', $css_url);

    then at the bottom, replace:
    add_action('wp_head', 'wp_syntax_head');
    with:
    add_action('wp_print_styles', 'wp_syntax_head');

    that is all

  • The topic ‘[Plugin: WP-Syntax] [PATCH] fix for css inclusion via CDN with WP-SuperCache’ is closed to new replies.