Support

Home Forums Event Espresso Premium Trying to make EE4 modifications with WordPress Fatima theme

Trying to make EE4 modifications with WordPress Fatima theme

Posted: July 1, 2015 at 1:54 pm


Brian Crall

July 1, 2015 at 1:54 pm

Hello!

We are working to set up EE4 behind the scenes on our Fatima theme. Once it is ready, we will swap it out with our current ticketing platform. We have created a child theme to implement the customization.

We have searched the support discussion threads and made some modification attempts based on what we found, but feel the examples we are using might be either outdated, or not compatible with our theme.

Below is a list of what we are currently trying to accomplish.

1. We would like our event description to appear first, with the ticket selector below. (Ideally, somehow having the option to insert the ticket selector between two description paragraphs would be best.)

2. When expanding ticket details, the only information we would like to appear is the ticket price breakdown. We would like to remove everything else (ticket sale dates, event date ticket uses, and event access).

3. We would like to remove datetimes altogether.

4. We currently end online ticket sales an hour before an event, with an automated message informing customers to purchase tickets at the door. Has there been a way developed yet to generate this type of message automatically, other than manually including the message in the event description?

Is there a central page or link on your site that has a list of general instructions that would apply to everyone looking to modify their site?

Another heavily desired function is a drop-down box for selecting ticket dates. We understand that this is in development for EE4. Is there a projected release date for it?


Josh

  • Support Staff

July 1, 2015 at 4:20 pm

Hi Brian,

Thank you for the list, I’ll try to give you some pointers for each specific item you’re trying to accomplish below:

We would like our event description to appear first, with the ticket selector below. (Ideally, somehow having the option to insert the ticket selector between two description paragraphs would be best.)

We would like to remove datetimes altogether.

Normally we’ll suggest using some action hooks to re-order things, but since you want to put the Ticket selector between two description paragraphs, and you’re using a child theme, I think making a custom event template will be a better solution.

First, you will want to get familiar Event Espresso templates. There is a “public” folder in the Event Espresso plugin. There are a bunch of templates located in a folder there. The one that you’ll be working with is content-espresso_events.php. You’ll want to copy that one right into your child theme.

When you review the code in that template, you’ll see that it’s getting different template parts, you can remove some of those (like the datetimes) and move them around. The espresso_events-tickets template handles the ticket selector, -datetimes handles the datetimes and so on.

One idea that you can try to display content above and below the ticket selector is use the Advanced Custom Fields plugin to add a second Description box, and then you can place the secondary description below the ticket selector in the template.

When expanding ticket details, the only information we would like to appear is the ticket price breakdown. We would like to remove everything else (ticket sale dates, event date ticket uses, and event access).

Some of that can be turned off in the Events Templates settings tab. For the rest like ticket sale dates, I can suggest hiding those elements with CSS. You can also alter the ticket selector template, but you’ll need to be aware that your customized ticket selector template will need to maintained when changes are made to the plugin over time.

Has there been a way developed yet to generate this type of message automatically, other than manually including the message in the event description?

Yes, you can put that message right in your template where you want it to be displayed, and wrap it in a conditional that checks against the event’s start time – 1 hour.

Is there a central page or link on your site that has a list of general instructions that would apply to everyone looking to modify their site?

These are some general guidelines that apply to everyone looking to modify their site:

https://eventespresso.com/2014/02/developers-corner-theming-event-espresso-4/

Another heavily desired function is a drop-down box for selecting ticket dates. We understand that this is in development for EE4. Is there a projected release date for it?

This isn’t currently under development. There’s an open GitHub issue where we have listed some proposed ideas for how a drop-down will work, and we’re currently looking for feedback on those ideas. You’re more than welcome to leave your feedback here.

The support post ‘Trying to make EE4 modifications with WordPress Fatima theme’ 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