Opened 8 years ago
Closed 5 years ago
#39267 closed defect (bug) (worksforme)
ThickBox window dimension
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | General | Keywords: | |
Focuses: | ui, javascript, administration | Cc: |
Description
Hello
I use ThickBox in my new plugin
https://codex.wordpress.org/Javascript_Reference/ThickBox
The problem in uses thickbox my dimension don`t effected!
href value: #TB_inline?width=400&height=410&inlineId=wpu_box_parent
I set width: 400px & height: 410px, but in per page different dimension
Attachments (8)
Change History (11)
#1
in reply to:
↑ description
@
8 years ago
And in some page add "thickbox-loading" class to #TB_window
How to add title in thickbox?
For this problem i use jQuery & set this, Another way?
This ticket was mentioned in Slack in #core by noisysocks. View the logs.
5 years ago
#3
@
5 years ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
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:
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/.
Dashboard