Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#36673 new defect (bug)

Post Formats transferring from old theme to theme without post format support

Reported by: ainsliekoopmans's profile ainsliekoopmans Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Post Formats Keywords: close
Focuses: Cc:


Blask does not support post formats, but when the theme is changed to Blask from Twenty Ten, the post format of the posts remains and there is no way to remove it.

With posts that are still set as "Asides", the title will not display.

I duplicated this issue by creating posts and setting them as asides on Twenty Ten. I then changed to the Blask theme. The posts were still functioning as asides, but there was no way to remove the post format.

Change History (2)

#1 @dougal
8 years ago

Actually, the Blask theme does appear to support post formats, indirectly. It may not enable the ability to choose a post format, but it does honor some things in the templates and css. In the case of Asides, you'll find that the stylesheet includes this rule (starting around line 1543), which hides the title for Asides:

## Asides
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
        display: none;

Posts get the .format-aside class from the usual post_class() call in the templates.

Also, you can override the display for any given format by creating a file in the template-parts directory named content-[FORMAT].php (e.g., template-parts/content-aside.php)

#2 @dougal
8 years ago

  • Component changed from General to Post Formats
  • Keywords close added
Note: See TracTickets for help on using tickets.