Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#12468 closed defect (bug) (duplicate)

there is no delete/disable header option under appearance / header

Reported by: Denis-de-Bernardy Owned by: colinloretz
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Themes Keywords: has-patch
Focuses: Cc:


it's all in the title. especially useful when the file got deleted. or if no header is desired.

Attachments (4)

2010header.diff (685 bytes) - added by colinloretz 5 years ago.
twentyten header change
custom-header.2.diff (1.1 KB) - added by colinloretz 5 years ago.
custom-header.diff (1.6 KB) - added by colinloretz 5 years ago.
Fixed the css and moved the option to the end of the table
custom-header-r2.png (248.6 KB) - added by colinloretz 5 years ago.
Fixed design

Download all attachments as: .zip

Change History (12)

comment:1 @Denis-de-Bernardy6 years ago

in addition, when viewing appearance / header with an invalid (deleted) header, clicking the save header button further down to choose from one of the default ones, but without selecting one beforehand, apparently selects a random header.

comment:2 @colinloretz5 years ago

  • Owner set to colinloretz
  • Status changed from new to accepted

This one will require a bit of conversation.

I've included a screenshot and patch for adding a new option to the radio boxes for selecting "No Header Image".

The UI for removing custom backgrounds is a little different and uses a "Remove background" button. I opted for the new radio button instead because I felt it made the most sense.

Alteration to the twentyten theme will also be necessary to detect if get_header_image() is empty. I have attached a diff for this as well.

This offers flexibility for using a theme's registered headers, no header or an uploaded custom header.

@colinloretz5 years ago

twentyten header change

comment:4 @colinloretz5 years ago

  • Keywords ui-feedback has-patch added

comment:5 @johnonolan5 years ago

UI Feedback: Good concept, I think it works. It would be good to see "no header" as the first option rather than the last, let's make sure that radio button aligns with the image (centered vertically) in the same way as the others.

comment:6 @colinloretz5 years ago

@johnonolan: Thanks for the feedback. I've added it in it's own table row for now (instead of figuring out shifting the items over one) but I will look at adding it to the front of the options.

I've fixed the css for alignment.

@colinloretz5 years ago

Fixed the css and moved the option to the end of the table

comment:7 @colinloretz5 years ago

  • Keywords ui-feedback removed

I've added it to the end of the table correctly. If someone wants to add it to the beginning of the options, go for it but either side made sense to me and it was easier to implement.

@colinloretz5 years ago

Fixed design

comment:8 @nacin5 years ago

  • Milestone 3.0 deleted
  • Resolution set to duplicate
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.