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

  1. alhoseany
    Posted 3 years 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__ ));


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Breaks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.