Help Adding a Form with Blue Button to Media Uploader with media_upload_tabs
-
If anyone can help, I would greatly appreciate it. I have added a new link to the left side of the media uploader popup with media_upload_tabs(). What I need help with is adding the blue button that shows at the bottom right of the media screen for this new custom HTML screen of mine.
I have this code so far that works:
function fancy_title_tab($tabs) { $newtab = array( 'fancy_title' => 'Fancy Title', ); return array_merge( $tabs, $newtab ); } add_filter('media_upload_tabs', 'fancy_title_tab'); function custom_media_upload_fancy_title() { $html = (' <form> <input id="shortcode-fancy-title" value="ok" style="width:100%; padding:5px;" type="text"> </form> '); echo $html; } add_action( 'media_upload_fancy_title', 'custom_media_upload_fancy_title' );
This code works well and shows my form when someone clicks on Fancy Title.
What I need help with is how to add the blue button on the bottom right-hand corner like you see on the media tab “Insert Into Post”. Also, when someone types a value into the textbox, how do we access it from the iframe? jQuery?
I cannot find a tutorial on the web that is completely written to include this.
Thank you,
Bruce
- The topic ‘Help Adding a Form with Blue Button to Media Uploader with media_upload_tabs’ is closed to new replies.