Prior to the 3.3 beta 3 I used thickbox on the front end with the below script. Since beta 3 the lightbox has stopped working. Is there an error in my code or did the function change?

function add_themescript(){
    wp_enqueue_style('thickbox.css', '/'.WPINC.'/js/thickbox/thickbox.css', null, '1.0');

  • Is the thickbox script being included in the markup on the frontend? – Tom J Nowell Nov 16 '11 at 17:19
  • Does it throw an error? – Pippin Nov 17 '11 at 4:33
  • Yes, the css and the js are included. No errors are evident. It just does not work. – torinagrippa Nov 17 '11 at 18:46
  • Here is code that works in 3.3. – fuxia Feb 17 '12 at 10:55

This is possibly related to an issue in Wordpress regarding cache that has just been fixed within the last hour:


Here's the Trac ticket:


Clearing your cache may help in the meantime before beta 4/RC1

  • Thanks Tom. Clearing the cache didn't help but hopefully the patch will fix it. – torinagrippa Nov 17 '11 at 18:47

WP 3.3 uses jQuery 1.7. It's possible that the thickbox script doesn't work with 1.7. I know some other scripts, such as the popular Nivo Slider, have had problems with it already.

  • but the built in media uploader works with that version of jQuery and ThickBox – Bainternet Nov 16 '11 at 23:15
  • Good call there. – Pippin Nov 17 '11 at 4:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.