• Resolved scottlowe

    (@scottlowe)


    Once I create a sidebar within the Widget Wrangler menu I cannot edit or delete it. I also cannot sort them.

    I am using Widget Wrangler 1.1rc6 and WP 3.0.5. The same is true with 3.1 and 3.1.1 and deactivating the other plugins does not help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi scottlowe,

    I was able to find the root of the problem and have committed a fix. Should be working in all WP 3+ in version 1.1RC7

    For plugin developers:

    The issue was that I was not loading the javascript correctly. The correct way to load javascript in a wordpress 3 plugin is to enqueue the script. For admin pages, this is a two part process

    In my admin_init I am now using the admin_enqueue_scripts action:
    add_action('admin_enqueue_scripts', 'ww_admin_js');

    Now my ww_admin_js function looks something like this:

    wp_enqueue_script('ww-admin-js',
                      plugins_url('/ww-admin.js', __FILE__ ),
                      array('jquery-ui-core', 'jquery-ui-sortable'),
                      false,
                      true);

    For additional page specific javascript loading I got my answer from this blog post:
    http://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/

    Hope this helps another plugin developer.

    Thread Starter scottlowe

    (@scottlowe)

    Awesome! Works perfectly! Thank you!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Widget Wrangler] unable to modify sidebar’ is closed to new replies.