Wordpress Thickbox integrated but not working

My blog, mberkompas.com , uses wordpress with thick package integration. Although all thick file files are uploaded and the images have a class of thick letters, they are still uploaded to a new tab.

When checking my JS console, I found that thickbox.js is getting an error.

thickbox.js:26Uncaught TypeError: Object #<Object> has no method 'live'

I am still a fan of jQuery and do not quite understand what is happening. Any help would be greatly appreciated.

+3
source share
1 answer

The error I get (marked by Firebug ) inside this function (inside thickbox.js):

//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
 jQuery(domChunk).live('click', tb_click);
} 

, live() . jQuery 1.2.x live() 1.3.x. , jQuery , , 1.3.x, .

+1

Source: https://habr.com/ru/post/1794555/


All Articles