WordPress.org

Ready to get started?Download WordPress

Forums

Simple Breaks
failure to load hr.js file when install wordpress in its own directory (1 post)

  1. alhoseany
    Member
    Posted 1 year ago #

    thanks for the great plugin.
    it was working great until i decided to keep keep wordpress in its own directory and still use the root domain to point to it.

    in short i changed site url in setting to my domain only without wordpress directory.

    the hr.js is not loading because you hard coded the url to plugin directory. i fixed that like this:

    file: simple-breaks.php
    edit line 21
    from this:
    define( "SB_PLUGIN_URL", plugin_dir_url( __FILE__ )."/wp-content/plugins/" . SB_PLUGIN_DIR );

    to this:
    define( "SB_PLUGIN_URL", plugin_dir_url( __FILE__ ));

    http://wordpress.org/extend/plugins/simple-breaks/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.