WordPress.org

Ready to get started?Download WordPress

Forums

Please add Title, Alt Text and Description fields to Edit Gallery (5 posts)

  1. notpoppy
    Member
    Posted 1 year ago #

    Although I like some of the changes introduced by the new media manager in WordPress 3.5, it is seriously harming my productivity in one respect.

    Previously it was possible to add the Title, Caption, Alt Text and Description to each image in a gallery very quickly by using the tab button to move between fields and images.

    This is no longer possible with the new media manager. The best you can do is edit a gallery using Edit Gallery which allows you to add the Captions in this way.

    Would it be possible to add the Title, Alt Text and Description fields here too in a future version of WordPress?

    This is a feature I'm very keen to see so if anyone knows of a plugin or hack that can do it, please let me know!

  2. gabrielcastillo
    Member
    Posted 1 year ago #

    I am on version 3.5.1 and I am able to add title, caption, alt text, description for each image. this can be done in a gallery or in media upload section. this should appear in the right side of the media upload window.

    http://gabrielcastillo.net/images/wp-media-upload-edits.jpg

  3. notpoppy
    Member
    Posted 1 year ago #

    I appreciate the quick reply however it's not a solution to my problem.

    If you look at your screengrab you'll see each image has "Caption this image" beneath it, allowing you to enter the caption for each image then hit tab to go to the next one and fill that in.

    However you can't do that for the title, caption, alt text and description on the right - you have to edit them, then grab the mouse and click on the next image, then edit it, then click the next image, etc...

    This extra step of having to click on each image adds up to a significant waste of time when working with large galleries.

  4. notpoppy
    Member
    Posted 1 year ago #

    I'm still looking for a way to do this and wondering if it's possible to modify WordPress core in order to do it.

    Can anyone advise on what files I need to have a look at? Presumably this is going to involve creating some new hooks?

    Any suggestions on how to do this would be welcome - it's a bit above the level of what I've done with WordPress in the past but I'm keen to give it a try so I can upgrade to 3.5 on my main site.

  5. notpoppy
    Member
    Posted 1 year ago #

    OK, the part of WordPress core which handles the caption editing within galleries is in wp-includes/media-template.php and the code is as follows:

    <# if ( 'image' === data.type ) { #>
    <input type="text" value="{{ data.caption }}" class="describe" data-setting="caption"
    placeholder="<?php esc_attr_e('Caption this image&hellip;'); ?>" {{ maybeReadOnly }} />
    <# } else { #>

    It looks to me like I need to add three further lines, one each for Title, Alt Text and Description, to create the extra input boxes I need. This is rather more complicated than anything I've tried to do with WordPress before, however, so if anyone can help I'd be very grateful.

    And as I understand rather than hack the core I should create hooks onto the filters to do it but one step at a time!

Topic Closed

This topic has been closed to new replies.

About this Topic