Comments Becky started the conversationJanuary 20, 2020 at 3:36pmHow can I get the grid view to display only a single row? 877Zhivko repliedJanuary 21, 2020 at 3:27pmAdd grid_columns and grid_per_click parameters. Example: [stachethemes_ec grid_columns=4 grid_per_click=4]grid_per_click parameter defines how many events to load per "Look for more" button click. Stachethemes DeveloperBecky repliedJanuary 21, 2020 at 5:30pmThat still wraps if the screen width gets smaller. I want it to stay in a single row. 877Zhivko repliedJanuary 21, 2020 at 7:19pmThat's because there's not enough space to contain the boxes.You can stop the code re-calculating the columns by opening file stachethemes_event_calendar\assets\js\front\stec.js and comment lines 4429 to 4435: /* while (($instance.$boxgrid.find('.stec-layout-boxgrid-events').width() - ((parent.columns - 1) * parent.options.gutter)) / parent.columns < parent.options.blockMinWidth) { parent.columns--; if (parent.columns === 1) { break; } }*/ Screenshot of the code attached. Stachethemes Developer Sign in to reply ...
How can I get the grid view to display only a single row?
Add grid_columns and grid_per_click parameters. Example:
grid_per_click parameter defines how many events to load per "Look for more" button click.
Stachethemes Developer
That still wraps if the screen width gets smaller. I want it to stay in a single row.
That's because there's not enough space to contain the boxes.
You can stop the code re-calculating the columns by opening file stachethemes_event_calendar\assets\js\front\stec.js and comment lines 4429 to 4435:
Screenshot of the code attached.
Stachethemes Developer