[wp-trac] [WordPress Trac] #39520: Twenty Seventeen: One-column doesn't work on Blog Page
WordPress Trac
noreply at wordpress.org
Sat Jan 28 15:33:47 UTC 2017
#39520: Twenty Seventeen: One-column doesn't work on Blog Page
---------------------------+------------------------------
Reporter: Sheriziya | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by Sheriziya):
With thanks to Kathryn (on the forums) and Laurel (one of the creators of
Twenty Seventeen), this code solved the problem:
{{{
@media screen and (min-width: 48em) {
.blog:not(.has-sidebar) #primary article,
.archive:not(.page-one-column):not(.has-sidebar) #primary article,
.search:not(.has-sidebar) #primary article,
.navigation.pagination,
body.blog .site-content .page-header,
body.archive .site-content .page-header,
body.search .site-content .page-header {
float: none;
margin-left: auto;
margin-right: auto;
max-width: 740px;
width: auto;
}
}
}}}
Apparently the page title is floated to the left on the blog and search
results pages, but that doesn’t count as a content column.
The above code has fixed it for me. The left floating is pretty confusing
on a one-column layout, but at least it's fixed now.
So, apparently this is another design thing and not a bug, I think. But
seen reactions of others, saying it's not a logical design decision is an
understatement I think, but it's solved now for me....
Thanks!
Not sure how to mark this now, @SergeyBiryukov Can you advice on that?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39520#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list