Support

Home Forums Event Espresso Premium Grid view template has cascading boxes in first row??

Grid view template has cascading boxes in first row??

Posted: July 24, 2018 at 12:34 pm

Viewing 13 reply threads


Joe Mangrum

July 24, 2018 at 12:34 pm

Hi, I’m trying to put events in a specific order on the grid template. I numbered the events category and then inserted individual shortcakes to the page in that order

<hr />

<a name="6"></a>
<h2></h2>
<h2 style="text-align: center;"><span style="color: #ff6600;"><b>Art Adventures, Rendevous, </b></span><span style="color: #ff6600;"><b>Minis & Studio Classes </b></span></h2>
<h6 style="text-align: center;"><strong><span style="color: #333333;">(Click or Scroll over any image to view Class Times)</span></strong></h6>
[ESPRESSO_GRID_TEMPLATE category_slug=1]
[ESPRESSO_GRID_TEMPLATE category_slug=2]
[ESPRESSO_GRID_TEMPLATE category_slug=3]
[ESPRESSO_GRID_TEMPLATE category_slug=4]
[ESPRESSO_GRID_TEMPLATE category_slug=5]
[ESPRESSO_GRID_TEMPLATE category_slug=6]
[ESPRESSO_GRID_TEMPLATE category_slug=7]
[ESPRESSO_GRID_TEMPLATE category_slug=8]
[ESPRESSO_GRID_TEMPLATE category_slug=9]
[ESPRESSO_GRID_TEMPLATE category_slug=10]
[ESPRESSO_GRID_TEMPLATE category_slug=11]
[ESPRESSO_GRID_TEMPLATE category_slug=12]

<hr />

<a name="6"></a>
<h2 style="text-align: center;"><span style="color: #339966;"><b>Create Your OWN Adventure!</b></span></h2>
[ESPRESSO_GRID_TEMPLATE category_slug=choose-your-own][ESPRESSO_GRID_TEMPLATE category_slug=book-a-party][ESPRESSO_GRID_TEMPLATE category_slug=museum-adventure][ESPRESSO_GRID_TEMPLATE category_slug=parent-child-workshops]

The problem is the first row cascades in a step as the row moves to right we have 4 grid spacing across the page and it looks weird

grid spacing

what can I do to correct this? I’ve tried order by start time etc but we have the events that need to be excluded and it still does not work??


Josh

  • Support Staff

July 24, 2018 at 2:39 pm

Hi Joe,

It looks there are a bunch of break tags getting added to the markup, and if you add this CSS it will remove those steps you’re seeing:

.page-id-4793 .entry-content br:nth-of-type(-n+3) {
display: none;
}

That’s probably not the solution as you’ll run into other layout issues. The reason being is the Grid template plugin was not intended to display a grid of one, followed by another grid of one, and so on.

The solution I can recommend is use one shortcode in place of those first twelve, and assign those 12 events to one category. Then specify that category in the shortcode so the events that you need to be excluded will not be included there.


Joe Mangrum

July 24, 2018 at 2:45 pm

That CSS creates another issue…

If I put them all in one category then they are not ordered

The client wants them ordered by tuesday am -tues pm wed am wed pm etc…. they appear in the right order but there is no simple category to make this happen??


Joe Mangrum

July 24, 2018 at 2:48 pm

they need to be sorted by start time and day


Josh

  • Support Staff

July 24, 2018 at 2:52 pm

Joe,

May I ask what order are they in why you use one category with one shortcode?


Joe Mangrum

July 24, 2018 at 2:54 pm

they are classes start with tuesday am afternoon pm then wednesday am afternoon and eve then thursday am etc

trying to reflect the table and how they are ordered below


Joe Mangrum

July 24, 2018 at 2:55 pm

tried multiple different ways of asc or desc of start time and none work as close to what we want as this??


Josh

  • Support Staff

July 24, 2018 at 3:05 pm

That doesn’t answer my question. One way to help us help you is please be specific in your replies. For example you could send a reply like “I tried this shortcode [Shortcode you tried] and it did this {what it did}, and I tried this shortcode [Other shortcode you tried, and it did this {what it did}” instead of:

tried multiple different ways of asc or desc of start time and none work as close to what we want as this??

Anyway, this doesn’t appear to be an issue with the Grid view template but rather the way you’re inputing shortcodes into the page. One possible fix (beyond the already mentioned recommended way to use one shortcode) is you remove the line breaks between the shortcodes. You’ve already done that for the second half of the page with those last 4 shortcodes.


Joe Mangrum

July 24, 2018 at 3:22 pm

I used shortcode [ESPRESSO_GRID_TEMPLATE order_by=event_name] the result was only 8 of the 12 displayed and added 2 inactive events for a total of 10 in no order

[ESPRESSO_GRID_TEMPLATE month=september-2018] and only 6 displayed + 4 others that are below in the 2nd set already

even when viewing events I try to sort by start date and they are not in correct order??

I also tried [ESPRESSO_GRID_TEMPLATE category_slug=tuesday] with wednesday and thursday as well but the event start times were mixed in the order??


Josh

  • Support Staff

July 25, 2018 at 6:04 am

Hi Joe,

The shortcodes you tried were not the shortcode I’m advising to do. Here are two options that you can choose from to make this work:

Option 1) Assign the 12 events to their own unique category, where no other events are assigned to that category. For example if the category slug is
‘upcoming’, your shortcode will be:
[ESPRESSO_GRID_TEMPLATE category_slug=upcoming order_by=start_date sort=ASC limit=12]

Option 2) Remove all the line breaks between each of the single shortcodes e.g. This:

[ESPRESSO_GRID_TEMPLATE category_slug=1]
[ESPRESSO_GRID_TEMPLATE category_slug=2]
[ESPRESSO_GRID_TEMPLATE category_slug=3]
[ESPRESSO_GRID_TEMPLATE category_slug=4]
[ESPRESSO_GRID_TEMPLATE category_slug=5]
[ESPRESSO_GRID_TEMPLATE category_slug=6]
[ESPRESSO_GRID_TEMPLATE category_slug=7]
[ESPRESSO_GRID_TEMPLATE category_slug=8]
[ESPRESSO_GRID_TEMPLATE category_slug=9]
[ESPRESSO_GRID_TEMPLATE category_slug=10]
[ESPRESSO_GRID_TEMPLATE category_slug=11]
[ESPRESSO_GRID_TEMPLATE category_slug=12]

gets changed to be this:

[ESPRESSO_GRID_TEMPLATE category_slug=1][ESPRESSO_GRID_TEMPLATE category_slug=2][ESPRESSO_GRID_TEMPLATE category_slug=3][ESPRESSO_GRID_TEMPLATE category_slug=4][ESPRESSO_GRID_TEMPLATE category_slug=5][ESPRESSO_GRID_TEMPLATE category_slug=6][ESPRESSO_GRID_TEMPLATE category_slug=7][ESPRESSO_GRID_TEMPLATE category_slug=8][ESPRESSO_GRID_TEMPLATE category_slug=9][ESPRESSO_GRID_TEMPLATE category_slug=10][ESPRESSO_GRID_TEMPLATE category_slug=11][ESPRESSO_GRID_TEMPLATE category_slug=12]


Joe Mangrum

July 25, 2018 at 1:05 pm

Hi Josh thanks for your patience I first tried eliminating spaces etc in the text edit field and instead of fixing the cascade effect on the first row it made the rows uneven with 1 box in one row 3 in another as it did before.

Then I tried to categorized them all with Upcoming and used [ESPRESSO_GRID_TEMPLATE category_slug=upcoming order_by=start_date sort=ASC limit=12]

and while I did discover the order was off and found 2 start times actually were not pm but mistakenly am which threw off the order a bit , not corrected the boxes are in order with the single shortcode but have the uneven rows of 4/1/4/3 instead of 3 rows of 4 like it should be

you can see her register page

not sure what the issue is ?


Josh

  • Support Staff

July 25, 2018 at 1:29 pm

It’s a CSS issue, that can be fixed by adding some CSS to your custom stylesheet:

#content .ee_grid_box_v2 img {
    height: 200px !important;
}


Joe Mangrum

July 25, 2018 at 1:33 pm

awesome that fixed it thanks so much


Josh

  • Support Staff

July 25, 2018 at 1:56 pm

You’re welcome. I’m glad you’ve got that sorted out.

Viewing 13 reply threads

The support post ‘Grid view template has cascading boxes in first row??’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso