Support » Plugin: Lightview Plus » js isn't loaded on sub-directory installs. (fix inside)

  • In lightview-plus.php in function mce_header

    the content folder is hard coded. If I use a setup like this

    It doesn’t work.

    I suggest replacing
    `echo “<script type=’text/javascript’ src='”.get_option(‘siteurl’).”/wp-content/plugins/lightview-plus/lightview-plus.js’></script>\n”;
    echo "<script type='text/javascript' src='". plugins_url("lightview-plus/lightview-plus.js'") . "></script>\n";

    I was a bit surprised because you did use wp_enqueue on the front end files.

  • The topic ‘js isn't loaded on sub-directory installs. (fix inside)’ is closed to new replies.