Quote:
Originally Posted by roelaroaster
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:
http://www.roelacoffee.com/store
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;
}
|
Hello,
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):
http://take.ms/orLdh
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"
Code:
<div id="my-store-XXXXXXX"></div>
<div>
<script type="text/javascript" src="https://app.ecwid.com/script.js?XXXXXXX&data_platform=code&data_date=2015-07-27" 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>
</div>
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:
http://take.ms/GkY9Q