Posted: August 9, 2018 at 12:49 pm
Hello! Was wondering if it’s possible to directly link from the calendar to a specific date/ticket combination (or at least have the chosen date from the calendar preselected on the 2nd page).
Clicking any of the register now buttons just leads to a list and the user has to re-select the appropriate date.
We generally recommend creating a separate event for each class to help eliminate the confusion about which ticket/date combination to pick within one event.
That said, an alternative idea would to add a URL parameter to the calendar links so when they click a specific date time on the calendar, the selected date time will be highlighted within the ticket selector. Those cannot be automatically selected, but the highlighting will help.
There’s some example code in this gist that shows how to add this:
You can add the above to a functions plugin or into your WordPress child theme’s functions.php file.
You can check out a demonstration here:
Thank you for the reply! I originally went with the combined route since these courses are identical (just on different dates). It seemed easier/faster (and a bit cleaner, URL wise) to just add additional dates than re-creating the template/layout and configuring the ticketing for each date separately.
Also, I used another plugin (which used separate posts for each date). However, our SEO was being hurt from “duplicate title tags”
Going back to the issue, i applied the code in the theme’s function.php file. I see the URL being added on but the color is not changing.
Finally, the css for the table headers appears to be weird under the following in Chrome and macOS Safari 11.1 but not in firefox: (the height of the header is excessively tall)
Is there any way to have the plugin’s CSS override the theme’s css? (Changing the theme to default 2017 solves the issue) I’ve looked through the forums but they seem to refer to an older version and appear to be depreciated.
I’ll follow up with each of your questions below:
It does have a way of saving a particular set of settings! For example, with the default ticket, you can go to Event Espresso → Pricing and edit the Base Price type ticket. There you can edit the name & amount, and that will be used for the default ticket the next time you create an event.
We do have some code snippets that will help you avoid some of the SEO-related gotchas.
This one adds a “noindex” meta tag to expired events:
I see that your site has the Yoast SEO plugin. You can add this snippet and it will exclude expired events from the generated XML sitemaps:
Also, you can extend the Yoast SEO plugin so it allows for editing events. You’ll add this snippet so the Yoast plugin can find its way into the event editor:
Then, you can edit the event’s meta title tag so it’s unique.
One last step I failed to mention: You’ll go to Event Espresso → Events → Templates and set “Show Date & Time Filter?” to Maybe.
Generally speaking, CSS with more specificity overrides CSS with less specificity. Event Espresso’s CSS doesn’t try to completely take over the design of your site (usually it’s desired to let the theme work out the design of the site)
In the case of your particular theme, it’s kind of doing an overreach with the last rule in this set:
To fix the huge table headings/cells, you can add this to your custom stylesheet:
Thank you for your help! The code regarding word-break worked! I figured something from the theme was causing issues hence the idea of an override.
I will look into the method of integrating Yoast and decide from there which route would be best. Thank you again!
Hello again. I had a chance to tackle this issue.
Also, the free admission/built in default has a padlock (in the default tickets tab) and seems locked at 100 qty – can this be changed?
Thank you again!
It sounds like somewhere along the way you’ve added a second default ticket. You can remove the second default ticket by going to Event Espresso > Events > Default Tickets. Then click the link to trash the other default ticket.
You can change the default ticket’s qty setting by adding a tiny bit of PHP code to a site functions plugins. Here’s an example code snippet that changes the default to 45:
You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.