New answers tagged

-1

The solution I read nowhere on the internet: tb_position is the thickbox function that do strange things with the window size. You can easily and simply overide it by the time thickbox call it. old_tb_position = tb_position; tb_position = function(){ $("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px', ...


0

Suppose you want to open the modal to the create gallery section: var options = { frame: 'post', state: 'gallery', title: wp.media.view.l10n.createGalleryTitle, multiple: true }; var frame = wp.media.editor.open(null,options) If you want something else, I suggest you search through the core js source to change the Library ID as ...



Top 50 recent answers are included