WordPress.org

Ready to get started?Download WordPress

Forums

Lightview Plus
js isn't loaded on sub-directory installs. (fix inside) (1 post)

  1. janw.oostendorp
    Member
    Posted 1 year ago #

    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";
    with
    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.

    http://wordpress.org/extend/plugins/lightview-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.