Okay
  Public Ticket #2275994
Grid View
Closed

Comments

  • Becky started the conversation

    How can I get the grid view to display only a single row?

  •  783
    Zhivko replied

    Add 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 Developer

  • Becky replied

    That still wraps if the screen width gets smaller. I want it to stay in a single row.

  •  783
    Zhivko replied

    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:

    /*
                        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