WordPress.org

Ready to get started?Download WordPress

Forums

Rich Widget
[resolved] Rich Widget error on thickbox (3 posts)

  1. ChowKaiDeng
    Member
    Posted 2 years ago #

    Hi, I've posted a long description of the error here, but to be brief:

    Rich Widget is doing this (file: rich-widget.php, around line 124):

    echo '<link href="' . RB_RICHWIDGET_BASEURL . '/thickbox/thickbox.css" rel="stylesheet" type="text/css" />';
    
    		// load up scripts
    		wp_enqueue_script('thickbox_custom', RB_RICHWIDGET_BASEURL . '/thickbox/thickbox.js');

    Instead of just simply this:

    wp_enqueue_script('thickbox');

    As Thickbox is included in the WP core scripts, there's no need to call it or include it on the Rich Widget directory. When the same script in two different directories is being called by two plugins, generates errors. I've discovered this because I was using using AdRotate and Rich Widget at the same time and both of them uses Thickbox. So, in this case, Rich Widget wasn't popping-up the thickbox to edit a widget content.

    I've changed the lines below and everything it's working ok again.

    Well, that's all. I think it's a small update that could be done to this wonderful plugin.

    Greetings!

    http://wordpress.org/extend/plugins/rich-widget/

  2. Chris Van Patten
    Member
    Posted 2 years ago #

    Thank you for this. I had a client very frustrated by the bug... and this solved it! Very odd that the plugin was enqueing its own thickbox code... but at least it's a simple fix.

    Cheers!

  3. ChowKaiDeng
    Member
    Posted 2 years ago #

    Hi Chris,

    Thanks for your comments. I'm glad it worked for you. Definitely, Rich Widget is the best plugin for this particular job, too bad it does not get as many updates as it could :D

    Greetings!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic