[wp-trac] [WordPress Trac] #36673: Post Formats transferring from old theme to theme without post format support
WordPress Trac
noreply at wordpress.org
Tue Apr 26 13:46:59 UTC 2016
#36673: Post Formats transferring from old theme to theme without post format
support
-----------------------------+------------------------------
Reporter: ainsliekoopmans | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by dougal):
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`)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36673#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list