Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Having the same issue with a client. #following

    Thread Starter vensonkuchipudi

    (@vensonkuchipudi)

    Using WordPress 4.7 and Rezgo 2.2.5. Installed on a Multisite WordPress installation with the plugin loaded on the individual sites and not as a Network plugin.

    I tried with the previous version to install as a Network plugin, but that didn’t work. So instead I installed it on the individual sites, but had to make the pathing changes to get it to work. REZGO_DIR and REZGO_URL_BASE were wrong otherwise.

    Thread Starter vensonkuchipudi

    (@vensonkuchipudi)

    Revised for 2.2.5:

    /* START MULTISITE CHANGES */
    $full_path = realpath(__DIR__. ‘/../../’);
    $plugin_dir = str_replace(WP_PLUGIN_DIR . ‘/’, ”, $full_path);
    $plugin_path = plugins_url().’/’.$plugin_dir;
    if ( is_multisite() ) {
    $new_plugin_url = str_replace(get_home_url().’/’, network_home_url(), WP_PLUGIN_URL);
    define(“REZGO_DIR”, strstr(preg_replace(‘/(https?\:\/\/)/’, ”, $new_plugin_url), ‘/’) . “/$plugin_dir/rezgo”);
    define(“REZGO_URL_BASE”, strstr(preg_replace(‘/(https?\:\/\/)/’, ”, $new_plugin_url), ‘/’) . “/$plugin_dir”);
    } else {
    define(“REZGO_DIR”, strstr(preg_replace(‘/(https?\:\/\/)/’, ”, WP_PLUGIN_URL), ‘/’) . “/$plugin_dir/rezgo”);
    define(“REZGO_URL_BASE”, strstr(preg_replace(‘/(https?\:\/\/)/’, ”, WP_PLUGIN_URL), ‘/’) . “/$plugin_dir”);
    }
    /* END MULTISITE MODIFICATIONS */

    Same issue, so I found one solution.

    Just change this line:

    $(‘#widgets-right’).on(‘click’, ‘a.clone-widget’, Oomph.CloneWidgets.Clone);

    To this:

    $(‘#widgets-right’).on(‘click’, ‘.clone-widget-action’, Oomph.CloneWidgets.Clone);

Viewing 4 replies - 1 through 4 (of 4 total)