Make WordPress Core

Opened 8 years ago

Closed 5 months ago

#36673 closed defect (bug) (invalid)

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:

Description

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 (3)

#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

#3 @hellofromTonya
5 months ago

  • Resolution set to invalid
  • Status changed from new to closed

It appears this ticket might be a support request, rather than a bug in Core. With no further feedback for 8 years, I'll close this ticket.

@ainsliekoopmans did the steps shared previously help to resolve it? If no and it still persists today, please reopen this ticket and share your findings and steps to reproduce. Thank you.

Note: See TracTickets for help on using tickets.