Support » Plugin: BNS Inline Asides » [Plugin: BNS Inline Asides] Hardcoded plugin path

  • Hi Cais,

    This is a really cool plugin. I installed it on my test server which uses a separate domain for plugins. This is causing the stylesheets to not be included.

    echo '<link type="text/css" rel="stylesheet" href="' . home_url( '/' ) . 'wp-content/plugins/bns-inline-asides/bnsia-style.css" />' . "\n";

    could be replaced with:

    wp_enqueue_style( 'taxonomy-list-shortcode', plugin_dir_url( __FILE__ ) . '/bnsia-style.css', array(), 'your-version-number-here', 'screen' );

    and then hook the function into wp_print_styles

    Best,
    -Mike

    http://wordpress.org/extend/plugins/bns-inline-asides/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: BNS Inline Asides] Hardcoded plugin path’ is closed to new replies.