View Single Post
Old 07-27-2015, 12:42 PM
ginger's Avatar
ginger ginger is offline
Ecwid Team
Join Date: Sep 2014
Posts: 714

Originally Posted by roelaroaster View Post
I only have 2 categories in my Ecwid store, but even though I am changing "$ecwid_pb_categoriesperrow", "$ecwid_pb_productspercolumn_grid" and "$ecwid_pb_productsperrow_grid" to 2 in the widget code, there is still a blank, 3rd column, which is causing the categories to be displayed off center.

This is a test site I set up, so you can see how it looks:

This is the code I changed:

if (empty($ecwid_pb_categoriesperrow)) {
$ecwid_pb_categoriesperrow = 2;

if (empty($ecwid_pb_productspercolumn_grid)) {
$ecwid_pb_productspercolumn_grid = 2;

if (empty($ecwid_pb_productsperrow_grid)) {
$ecwid_pb_productsperrow_grid = 2;

thank you for getting in touch with us.

Unfortunately, when I try to open the provided link, the server responds with a status of 503 (Service Temporarily Unavailable):

In general, you can control the number of categories per row by slightly tweaking Ecwid Product Browser code, installed on your page. The default code has the parameter, determining the number of categories per row - "categoriesPerRow=3"

<div id="my-store-XXXXXXX"></div>
<script type="text/javascript" src="" charset="utf-8"></script><script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3,3) list(10) table(20)","categoryView=grid","searchView=list","id=my-store-7226245");</script>
If you change the default parameter to "categoriesPerRow=2", Ecwid will load 2 categories per row on the main store page. In case you will be using Ecwid plugin for WordPress, the number of categories per row can be specified in the plugin settings:

- login to your WordPress admin area;
- start editing the store page, created by Ecwid plugin;
- click 'Edit store' button above the content area of the page;
- select 'Appearance' tab and input the desired number of categories per row to the corresponding field:
Xena S.
Ecwid Customer Care Team

Help Center

⬇ Please click Thanks if my reply helped you.