Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a built in way within the backend admin area to have an image show in a popup/lightbox?

I built a plugin with help images and want them to show when clicked in a popup overlay / lightbox.

share|improve this question

1 Answer 1

You can just use the built in ThickBox. Maybe not the pretties library but it does its job. Just add the class thickbox to the link and add the image to the href

Here is a simple example:

<?php echo '<a href="image.png" class="thickbox">'. __('Test image', 'domain') .'</a>'; ?>

Read more about ThickBox here.

share|improve this answer
    
i totally for that...however, I should not have used thickbox i the description. Didn't WP stop using thinkbox? What is default image overly in WP? I was going to use colorbox but did not want to load anymore in the head than aI have to? –  Jason Jan 8 '13 at 23:06
    
WordPress uses Thickbox for links-popup in the editor, Still in WordPress 3.6-alpha. –  Pontus Abrahamsson Jan 8 '13 at 23:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.