Make WordPress Core

Opened 12 years ago

Closed 10 years ago

Last modified 10 years ago

#20157 closed enhancement (wontfix)

Gallery: define a "Cover image" that will appear in archive pages or a blog home page

Reported by: hd-j's profile hd-J Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Gallery Keywords: has-patch ux-feedback
Focuses: Cc:

Description

Today, if you create a gallery with X images, you cannot define one specific image to appear as cover image for the whole gallery.

Couldn't we use the_post_thumbnail, and say that the cover of the album is the Featured image when there is one defined?

That's something that can be defined in the theme (see file attached), but I think it would be nice to have an option in core to define a cover image for each gallery.

What do you think?

Attachments (1)

content-gallery.diff (648 bytes) - added by hd-J 12 years ago.
Change display of the gallery first image if a post thumbnail is defined

Download all attachments as: .zip

Change History (7)

@hd-J
12 years ago

Change display of the gallery first image if a post thumbnail is defined

#1 @hd-J
12 years ago

  • Cc jeremy@… added

My mistake, it is in fact possible to choose a cover image, by changing the order of the pictures within that gallery. The first picture is the one displayed on home pages.

Still, I think it would be nice to be able to define the cover image by setting a "Featured image".

#2 @SergeyBiryukov
12 years ago

  • Keywords ux-feedback added

#3 follow-up: @stevenlasch
12 years ago

From the perspective of someone who hasn't worked with this feature. I replicated the experience and certainly the patch works to solve the problem, but the entire UI for choosing a featured image in not intuitive. If this is being re-engineered for 3.5, it will be a welcomed change.

#4 in reply to: ↑ 3 @SergeyBiryukov
12 years ago

Replying to stevenlasch:

the entire UI for choosing a featured image in not intuitive.

Related: #14762

#5 follow-up: @nacin
10 years ago

  • Component changed from Themes to Bundled Theme
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Hi hd-J, it looks like this ticket got lost because this had to do with a default theme (I can tell from the file being patched, "content-gallery.php"). However, the ticket doesn't mention which theme it's referring to. :-)

I'm going to close this out. Feel free to re-open if this is still relevant.

#6 in reply to: ↑ 5 @SergeyBiryukov
10 years ago

  • Component changed from Bundled Theme to Gallery

Replying to nacin:

Hi hd-J, it looks like this ticket got lost because this had to do with a default theme (I can tell from the file being patched, "content-gallery.php"). However, the ticket doesn't mention which theme it's referring to. :-)

The actual request here was for core to use the featured image (instead of the first image in the gallery) as the gallery cover.

The patch was just an example or implementing it in a default theme instead (Twenty Eleven).

Note: See TracTickets for help on using tickets.