Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category page Sidebar issue #1000

Closed
minankmori opened this issue Apr 26, 2017 · 3 comments
Closed

Category page Sidebar issue #1000

minankmori opened this issue Apr 26, 2017 · 3 comments

Comments

@minankmori
Copy link

Hello,

We have noticed one issue with cornerstone theme category page.
When any category has no subcategories and shop by price filter available in the left sidebar. category products right bar section will be moved to the left side and show white space on the right sidebar.
Please check the issue on attach screenshot.
2017-04-26_2021

You can fix this issue by adding more condition on the sidebar so when sidebar has no section available you can make the category products section full width and show 4 products per row to fill that white space.

Thanks,
Minank Mori

@sacr3dc0w
Copy link
Contributor

sacr3dc0w commented Apr 29, 2017

Using the {{or}} operator made for a very simple solution.

@sacr3dc0w
Copy link
Contributor

sacr3dc0w commented Jun 14, 2017

#1001 didn't look for 'shop by price', #1018 does.

Three products are displayed per row on category pages if one or more of these three conditions are met.

  1. Faceted search is enabled.
  2. Category contains subcategories.
  3. Shop by price is enabled

If none are met, the main content area remains at 75% width, leaving a quarter of the content area empty. This is due to the styling of .page-sidebar + .page-content. Using the {{or}} operator, verify if either of the three conditions are met. If neither are true, page content will stretch 100% and display four products by default.

@PreciselyAlyss
Copy link
Contributor

Closing based on @sacr3dc0w's fixes. Please re-open if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants