Open htdat opened 5 years ago
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
This issue is original here https://github.com/Automattic/themes/issues/484
Steps to reproduce the issue
Use a default theme like Twenty Sixteen.
What I expected
It should display one column like the portfolio archive page - my-site.com/portfolio
What happened instead
It's displaying two columns.
Other notes
WP.com site is displaying one column for both shortcode and archive pages.
Workaround
Use the custom CSS code in Customizer:
Some debug:
In p1547178515407200-slack-themes, this is what @alaczek found out:
Looks like in the generated code there’s a class added to potyfolio items on self-hosted
.portfolio-entry-mobile-first-item-row
, which triggers a media query:This is what forces portfolio items into two columns on mobile.
Those codes are from Jetpack:
https://github.com/Automattic/jetpack/blob/f8078c2cd12ac508334da2fb08e37a92cf283c14/modules/custom-post-types/css/portfolio-shortcode.css#L60
https://github.com/Automattic/jetpack/blob/f8078c2cd12ac508334da2fb08e37a92cf283c14/modules/custom-post-types/portfolios.php#L799