[wp-trac] [WordPress Trac] #39267: ThickBox window dimension

WordPress Trac noreply at wordpress.org
Thu May 7 05:28:44 UTC 2020


#39267: ThickBox window dimension
--------------------------+---------------------------------------------
 Reporter:  parselearn    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  4.7
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:  ui, javascript, administration
--------------------------+---------------------------------------------
Changes (by talldanwp):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 Hi @parselearn,

 Apologies that you didn't receive a response to your ticket! I've just
 tested the example for Thickbox from the documentation:
 https://codex.wordpress.org/Javascript_Reference/ThickBox

 I was able to make a modal with different dimensions:
 {{{#!php
 add_thickbox(); ?>
 <div id="my-content-id" style="display:none;">
         <p>
                 This is my hidden content! It will appear in ThickBox when
 the link is clicked.
         </p>
 </div>

 <a href="#TB_inline?&width=100&height=150&inlineId=my-content-id"
 class="thickbox">View my inline content!</a>
 }}}

 And this worked without any problem. I'll close the ticket, as it's fairly
 old and I couldn't find an issue.

 > How to add title in thickbox?
 > For this problem i use jQuery & set this, Another way?

 I'd recommend reaching out to WordPress forums if you need further help -
 https://wordpress.org/support/forum/wp-advanced/.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39267#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list