Support

Home Forums Event Espresso Premium Events grid that shows sold out events with a label

Events grid that shows sold out events with a label

Posted: November 5, 2020 at 6:29 pm


Kerry@novalda.com

November 5, 2020 at 6:29 pm

Hi, I’m wondering if there’s a way to have a grid that shows all of the upcoming events that are still available to register for. We’d also like to show the ones that are still upcoming but are sold out, and have some sort of label or graphic showing that they are sold out, or ‘almost sold out’… something like that.

Also, I’m not clear how the templates work – do you have instructions somewhere on that? Do I just copy the espresso-grid-template.template.php to a child theme and edit it? and how do I tell it to use that template in the shortcode?

Thanks!


Kerry@novalda.com

November 5, 2020 at 6:50 pm

Here’s an example of what we’d like to do: https://www.novalda.com/events-grid/


Tony

  • Support Staff

November 6, 2020 at 4:45 am

Hi Kerry,

I’m wondering if there’s a way to have a grid that shows all of the upcoming events that are still available to register for. We’d also like to show the ones that are still upcoming but are sold out, and have some sort of label or graphic showing that they are sold out, or ‘almost sold out’… something like that.

This sounds like the default behaviour for the grid template with the exception of the sold-out graphic. The link provided basically just uses multiple instances of the grid shortcode to output various events.

Also, I’m not clear how the templates work – do you have instructions somewhere on that? Do I just copy the espresso-grid-template.template.php to a child theme and edit it? and how do I tell it to use that template in the shortcode?

That’s correct, you copy the template file in your child theme.

EE automatically checks your theme for the template it is trying to use, in this case, the default template filename is espresso-grid-template.template.php so it will automatically check for it.

You can also use multiple different templates by passing the name of the template_file to the shortcode, like so:

[ESPRESSO_GRID_TEMPLATE template_file=espresso-grid-template.template.php]
[ESPRESSO_GRID_TEMPLATE template_file=espresso-grid-template-custom1.template.php]
[ESPRESSO_GRID_TEMPLATE template_file=espresso-grid-template-custom2.template.php]

The filenames can be whatever you prefer as longas you pass it to template_file


Kerry@novalda.com

November 6, 2020 at 1:01 pm

Hi, thanks for this. I’m not a developer but I can give it a try. Where would I find the snippets of code to add to the template?

What I’m trying to do is something like this (on the grid view) – I was searching through your forums and someone else had posted it. Specifically we’d like to be able to show the spots available or sold out like this example: https://www.paintingwithatwist.com/studio/westport/calendar/

Also, is there a way to turn thumbnails OFF on the calendar view shortcode so it just shows text? I don’t want to remove the thumbnail altogether because we’re using it on the grid view.

Thanks!


Tony

  • Support Staff

November 9, 2020 at 5:39 am

What I’m trying to do is something like this (on the grid view) – I was searching through your forums and someone else had posted it. Specifically we’d like to be able to show the spots available or sold out like this example: https://www.paintingwithatwist.com/studio/westport/calendar/

We some code that can be used to display the available spaces on the grid view template here:

https://eventespresso.com/wiki/events-grid-view-template-add-on/#ee4customizations

Is that what you are looking for?

Also, is there a way to turn thumbnails OFF on the calendar view shortcode so it just shows text? I don’t want to remove the thumbnail altogether because we’re using it on the grid view.

Sure, you can disable it in the Calendar settings:

Event Espresso -> Calendar -> Basic Settings -> Enable Images in Calendar

Set that to No and save.

The support post ‘Events grid that shows sold out events with a label’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Tony 3 weeks, 2 days ago ago

Topic Tags

Tagged: ,

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!