Questions tagged [thickbox]

Thickbox is a javascript library, incorporated into WordPress, that enables the generation of a lightbox both on the frontend and in de admin area.

Filter by
Sorted by
Tagged with
0 votes
0 answers
63 views

WordPress Thickbox Navigation Issue in Gallery

I am adding an image gallery via wp media uploader. In the frontend, I am trying to show these images in Thickbox pop-up. However, it shows the images in pop-up but when I navigate [next and prev ...
saurav.rox's user avatar
0 votes
1 answer
66 views

WP Dashboard video modal on load

I was able to create a dashboard modal using add_thickbox();, triggered by a link: <a href="#TB_inline?width=600&height=550&inlineId=my-content-id" class="thickbox">View my inline ...
Jorge's user avatar
  • 1
0 votes
0 answers
2k views

open modal window

I am working on a site where HR employees are managing applicants for jobs. I'm currently trying to add a modal window on a custom admin dashboard that will let a user quickly change an applicant's ...
pork-chop's user avatar
1 vote
1 answer
1k views

Custom Thickbox Broken on Dashboard Page?

I'm working on an extension that, as part of its functionality, adds Thickboxes to many pages in the Wordpress admin. On most pages this works fine -- I use an in_admin_footer action hook to call ...
Alana Storm's user avatar
0 votes
1 answer
495 views

Wordpress Admin Thickbox: Remove Margins/Padding

I've added a Thickbox to an admin page by adding the the following action hook to add the library code add_action( 'in_admin_footer', function(){ add_thickbox(); }); And then triggering ...
Alana Storm's user avatar
2 votes
1 answer
194 views

Open upload media dialog from thickbox

I'm using Thickbox (lightbox) built-in in WordPress to display some controls for user, some of controls using javascript to open dialogs like Upload Media that is already works fine outside the ...
Hady Shaltout's user avatar
1 vote
1 answer
478 views

How to customize WordPress Thickbox?

I've been able to do a certain amount of styling via CSS, but I'd like to add divs and more to the navigation elements - in other ords, I need to be able to somehow edit the actual js file, but ...
Laura Sage's user avatar
1 vote
1 answer
447 views

How to open the add media dialogue it in a certain state / tab?

I created a customized wp_view similar to embed (see wp-includes/js/mce-view.js, l. 868). I also have my own tab in the "add media" dialog. Naturally I want the edit button of my wp_view opening the ...
Paflow's user avatar
  • 268
0 votes
1 answer
114 views

Media button Thickbox content doesn't work everywhere

Please, understand that I'm new to wordpress and php. I added a media button to my media buttons in the admin by adding the following code to functions.php file: function add_custom_media_button() { ...
Iskalla's user avatar
  • 101
1 vote
1 answer
10k views

Showing a Thickbox (tb_show) does nothing

I'm trying to add a media uploader to a widget/plugin and I'm at the stage where I need to add a picture from the media library (or upload a new one). I added some javascript and added an event to a ...
TheHvidsten's user avatar
0 votes
2 answers
2k views

Form within thickbox

When I try and insert a form into a thickbox for use in the admin area, it seems to be removed completely. What do I need to change? <?php // Enqueue thickbox js and css add_thickbox(); ?&...
myol's user avatar
  • 776
2 votes
1 answer
1k views

Run script after clicking Set Featured Image in Media

I would like to run some script to get the featured image's width and height after the user clicked 'Use Featured Image' button and use the data retrieved within the Post Edit screen. Is there such ...
Billy's user avatar
  • 249
0 votes
1 answer
502 views

How would I get this to work - send to post from thick box

I have the following javascript which talks to about 6 elements. The first three open a thickbox for media upload and what not upon clicking on a specified button, the last three target the input ...
TheWebs's user avatar
  • 1,095
0 votes
0 answers
443 views

wp media popup close all popup

I am having a problem, regarding wp media popup, I am using a thick box for some data insertion. Now from that thick box the media popup is callled. Now from media popup when I click on 'insert into ...
Abhisek Malakar's user avatar
0 votes
0 answers
405 views

Is it possible to load an admin page inside a thickbox?

I'm currently trying to load a custom made admin page inside a thickbox. It's for creating new users with loads of extra custom data and none of the stuff I don't care about. Administrators can ...
Ben's user avatar
  • 195
12 votes
1 answer
3k views

Custom media upload content for inserting custom post shortcode

I’m working on a plugin that creates custom post type “portfolio” along with shortcode to insert in any page or post. The shortcode is: [portfolio option1=“1” option2=“0” option3=“1” ] And it works ...
Nikita's user avatar
  • 419
0 votes
0 answers
171 views

Is it possible to upload multiple images via Media Library tab in Thickbox I've created?

I have a meta box upload button and I want to upload multiple images using that button. Firstly I enqueue required scripts: add_action( 'admin_print_scripts-post-new.php', 'mycpt_admin_script', 11 );...
Wordpressor's user avatar
  • 5,041
9 votes
2 answers
2k views

ThickBox replacement

I'm searching, unsuccessfully unfortunately, for a ThickBox replacement used in Media Uploader. Any search fails on how to leverage Media Uploader and nothing about a script used for modal windows. ...
Domagoj's user avatar
  • 155
0 votes
1 answer
2k views

Thickbox in Plugin settings page?

I adding the default wordpress thickbox in the admin page to show some information inside the div. Everything seems ok when i click that link it appear in popup now <a class="thickbox" href="#...
Vignesh Pichamani's user avatar
1 vote
1 answer
2k views

Loading WP core Thickbox through frontend

Looking through some of the top Google results, this question has been answered a number of times, but the answers given don't seem to be working in my WP 3.6 install. One solution given is this: ...
Dan's user avatar
  • 887
4 votes
6 answers
7k views

ThickBox width can't be changed in admin

I'm trying to make pop up in admin area (in post edit screen) and i can't make my thickbox wider then 670px (width: 670px). Here's my thickbox code that shows thickbox: tb_show( ed.getLang('m7....
Maikal's user avatar
  • 638
1 vote
1 answer
1k views

Thickbox doesn't respect dimensions when used in admin [duplicate]

I'm writing an admin plugin which produces a pop up to give the user a preview of content. I tried to use thickbox as suggested here - http://codex.wordpress.org/ThickBox but it does not respect ...
rix's user avatar
  • 111
0 votes
0 answers
477 views

Thickbox not displaying just the image, instead showing full page in lightbox

I have implemented Thickbox into my wordpress theme. I have a regular Wordpress gallery that now has the lightbox when you click on any of the images. When clicked the lightbox shows up. However, ...
BDGapps's user avatar
  • 133
3 votes
1 answer
4k views

Issues creating a tinyMCE plugin that creates a custom link

I'm working on a plugin that works similar to the "link" button on tinyMCE: The user highlights text -> presses a button -> enters text into a box in a thickbox popup -> submits the form -> the user ...
dcp3450's user avatar
  • 455
5 votes
1 answer
38k views

Lightbox popup on WooCommerce add_to_cart action

I would like to create a modal 'pop-up' window in WooCommerce to appear when the "Add to cart" button has been clicked. This has to occur after the WC actions that actually add the product to the cart ...
Chris's user avatar
  • 235
0 votes
1 answer
220 views

where does my function output from load-* go?

I've got a function hooked into load-edit.php that prints out print content: add_action('load-edit.php', array($this, 'generate_bulk_print_content')); public function generate_bulk_print_content() { ...
Ewout's user avatar
  • 2,641
0 votes
1 answer
131 views

Hide the 'Gallery Settings' section of the Gallery tab of the media Thickbox

When I invoke the media uploader from a certain page, I'm looking for a way to hide all of the 'Gallery Settings' options at the bottom of the Gallery tab. I have set a referrer (dd-options-footer), ...
David Gard's user avatar
  • 3,300
0 votes
1 answer
3k views

How do I make Contact Form 7 pop up in thickbox? [closed]

I am trying to make contact form 7 pop up in a thickbox modal window. I can either use do_shortcode or the shortcode but I'm not sure how to set it up. Can someone push me in the right direction? ...
Desi's user avatar
  • 1,209
0 votes
1 answer
456 views

Thickbox 'tb_unload' function being called twice

When closing the Thickbox (by clicking on the cross), I am invoking the following function, by hooking it to the tb_unload action. However, the action is being called twice for some reason, and I don'...
David Gard's user avatar
  • 3,300
0 votes
2 answers
136 views

Only make custom image size if uploaded via Thickbox and attached to certain page

I am trying to make it so that WP will create another size image for me, but only when the image is uploaded via the Thickbox, and only when it will be attached to a certain ID. Does anybody know how ...
David Gard's user avatar
  • 3,300
4 votes
1 answer
10k views

how to use thickbox in admin?

I would like to show my retrieved content form my classes method in thickbox. How could I do this? I have been adding the proper id to my desired hyperlink but all of the admin body is getting parsed ...
fefe's user avatar
  • 874
1 vote
1 answer
2k views

How to Add Custom CSS to the Media Thickbox?

I've added a couple of custom fields to the Edit Media screen, but when these are displayed in the WP Media Thickbox (when adding images from the Edit Post screen, for example), the styling is gone. ...
David Gard's user avatar
  • 3,300
2 votes
2 answers
308 views

Wordpress native thickbox language

Is there any clean way (not overwriting wp-includes\js\thickbox\thickbox.js file) to translate english next/ prev/ image # of # and Close tooltip in Wordpress native Thickbox script?
cachaito's user avatar
1 vote
0 answers
612 views

Show/hide button in thickbox depending on from which page it is opened

I use the Taxonomy Images plugin and it generates a button in the thickbox for associating an image with a term (see screenshot). Due to the fact that I can only associate terms with images in a ...
user1706680's user avatar
2 votes
2 answers
2k views

Getting RID of thickbox!

I want to get rid of the complete thickbox css js and loading gif. Can anybody give me the correct way to get rid of it all via functions.php ? Cheers, Alex
Alex's user avatar
  • 23
3 votes
1 answer
2k views

Error with Custom Admin Screen in iframe Thickbox

I have a plugin that adds a new admin screen in an iframe. I created a PHP file in my plugin, and I put a link with a class of Thickbox to that. Everything works just fine, but it produces a PHP error ...
Randy Hoyt's user avatar
0 votes
2 answers
635 views

include shortcode values in Thickbox form

I have a shortcode that is built using a Thickbox form with various inputs that return the values. This works fine. However, I would like the existing values (if present) to re-populate the form if ...
Norcross's user avatar
  • 3,067
0 votes
1 answer
747 views

Custom Text in Media Uploader in a Theme Options Page

I want to replace the media uploader thickbox text only if it's used in the theme options page. If it is used in the Post then I don't want to make any changes. I am trying the following code, but ...
casper's user avatar
  • 1
2 votes
1 answer
811 views

Access tinymce from thickbox

Basically, I have a custom tinymce button which opens a thickbox window in iframe mode. Is there a way to access the tinymce from the iframe? Wordpress media uploader seems to do it somehow. Stuff ...
Lulupard's user avatar
0 votes
1 answer
808 views

Custom Jquery in admin breaks media-upload script

I have this part of code which loads custom version of jquery wp_deregister_script('jquery'); wp_register_script('jquery', ("http://code.jquery.com/jquery-latest.min.js"), false, ''); ...
Vassilis Barzokas's user avatar
3 votes
1 answer
3k views

How to enlarge thickbox media library iframe?

The iframe in thickbox media library is not big enough to display my custom tab. I tried to add "width=900&height=600" at the end of the link that pointing to the library, but no luck. How can I ...
Jenny's user avatar
  • 1,747
0 votes
2 answers
1k views

Add text to metabox input text field from Thickbox

I have a custom post type with a metabox text input area that I want to have a shortcode inserted into from a thickbox when a link is clicked on from the modal window. Using the code below right now ...
Ken's user avatar
  • 218
4 votes
1 answer
2k views

Image uploader with "Set Featured Image" link on front end

I am loading upload-media.php file using thickbox on front end where user can upload images to the post. Question: How to I trigger the upload-media.php so the link "set featured image" shows up on ...
Sisir's user avatar
  • 7,782
0 votes
3 answers
1k views

thickbox never gets called (weird behavior)

I have the exact same files (except for wp-config) running on a local server and a test server, and in my functions.php I have this: function len_scripts() { if (!is_admin()): ...
moraleida's user avatar
  • 2,235
0 votes
1 answer
633 views

How to use images uploaded with custom implementation of thickbox like the_post_thumbnail() functionality

I have create a custom post type with meta boxes. In metaboxes I have create some fealds that the use can use the WordPress ThickBox Media Dialog to upload his/her images for each post seperatly. ...
KodeFor.Me's user avatar
4 votes
1 answer
1k views

Thickbox hacking - removing fields

Default (big and ugly) Thickbox I don't like how this Thickbox's page looks at all, I almost never use all these settings fields so decided to get rid off them, at least on pages where I'm uploading ...
Wordpressor's user avatar
  • 5,041
4 votes
2 answers
2k views

Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area

I'm working on my admin area theme and I wanted to make some modifications on the way the thickbox and tinyMCE looks. I could make most of the changes through adding custom stylesheets and JS to my ...
nineam's user avatar
  • 51
0 votes
2 answers
3k views

Adding URL of PDF from Thickbox in a Meta Box

I have created some meta boxes of pages on the theme i'm working on. The idea is to have a input field, then a button to upload files. The meta box is working properly. When I click on the button, ...
Simon's user avatar
  • 1,208
2 votes
1 answer
974 views

How to hook into wordpress admin upload iframe?

I have written a plugin which lets the user upload file attachments for using WordPress as a download site. So I have added a meta box which shows the user the files he has uploaded for every post. ...
2hamed's user avatar
  • 380
0 votes
1 answer
3k views

How to modify iFrame content in an admin thickbox

I have a link in a metabox that brings up a Thickbox iFrame of another page on my site. It works fine, except that I can't seem to affect the DOM of the page in the iFrame. What do I have to do to ...
supertrue's user avatar
  • 3,016