Posted: July 31, 2019 at 1:03 pm
|
I would like the course details (Venue, Address, All Dates, and Description) to appear on the Toggle option using the Event Table View. Is this possible? If so, how? |
Hi there, You can tell the table view template to load all of the date by adding For the rest of your request, I’m not sure I understand as pretty much all of that content loads within each section. Can you add an example of what you are looking for? Maybe a screenshot of what you’d like the output to be? The table view template allows for custom versions of the template to be loaded so you can change the output if you are comfortable with PHP/HTML/CSS/JS but before providing further details I need to know a little more on what you are trying to do. |
|
|
Hi, thank you for the quick response. I was told the following shortcode would give me what I needed but it’s not… [ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=espresso-events-table-template-toggle.template.php]. It limits the data that’s displayed. I need it to display: https://refocusrealestate.com/test-ee-with-elementor (bottom of page) As for the table view, I’m not that experience with PHP/HTML/CSS/JS, I know enough to be dangerous. 🙂 I need the Table (row) to display: We only offer 2 courses so for a list of the same course would be confusing to a student. I’m not to simplify the appearance so a student can filter/navigate to a course that fits their schedule. Thanks again. |
It’s a valid shortcode, but if your courses have the same name/title it will basically display the same title multiple times so may not suit your needs. If you use I know it likely won’t fit exactly for what you need, but you start with the output that fits closest and then add additional details if needed. So we need to find the starting point for what you want to output first. Again note that if you add Example: |
|
|
All options are displaying the Venue. In my case, the Physical Address or just City would be of better value. Is there a reason only the Start Time displays and the End Time in the view? The [ESPRESSO_EVENTS_TABLE_TEMPLATE] shortcode does not provide enough upfront information. The [ESPRESSO_EVENTS_TABLE_TEMPLATE show_all_datetimes=true] is getting there but I would like it to have the Toggle option. It prevents a student from clicking back and forth to see the details of each event. |
You could change the Venue column to show the city instead, by following this other topic: https://eventespresso.com/topic/how-to-replace-venue-name-with-venue-city-in-event-table/ One difference though, you’d make the edits to the -toggle.template.php file.
Did you mean to ask, “why not display display the end time too?” If so, I’m not aware of that ever being requested actually. The way the time is displayed can also be changed by making an edit to the template too. In your custom template, find this: |
|
|
Yes, I meant “why not display the end time too?” Thank you for your guidance. However, I have no earthly idea of how even access the custom template to perform the steps you referenced. Is there a step by step guide or video you can point me to? Also, is there a way to change the color of the table to match my theme? |
You’ll use FTP to access the custom template. If you’re not familiar with how to use FTP, then here’s a guide I can recommend: The location of the Table template that you’ll copy over to your theme is in /wp-content/plugins/eea-events-table-template/templates ideally you’ll move the copy into a child theme in order to avoid losing the copy on a theme update. More information here: https://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/
Yes, by adding some CSS. You go to Appearance > Customize > Additional CSS, and add the following:
and you can adjust color values as desired. |
|
|
Thank you. This looks a little intimidating. I may have to find/pay someone to do this for me so I don’t break the site. 🙂 |
|
Table (row) After clicking Toggle Table Colors |
OK. So it sounds like you want to display the city alongside the event name. That can be done, you’ll edit that same template and place the code you added to display the city name, so it follows the code after the event name. In other words, you change this: Then you’ll need to get the venue address from the venue object earlier in the template. So this:
becomes this:
Then, where you currently have the template displaying the city: You can change
It means set the background color to this color: You may need to clear your browser’s cache because I see a color change on the table. Here’s a screenshot: |
|
|
Table (row) After clicking Toggle I would like the following to display after clicking Toggle: |
The City shouldn’t actually be displayed as a separate column, because that’s a one column layout you’re working with there. You could adjust the html accordingly to your project’s needs. For example, you could wrap the
It sounds like you didn’t make the edit to the template code. May I ask did you change $venue_city to $venue_address? |
|
|
Are you saying it should look like this now? As for $venue_city, are you saying replace <td class=”event_title event-<?php echo $post->ID; ?>”><?php echo $post->post_title . ‘ – ‘ . $venue_city; ?></td> with <td class=”event_title event-<?php echo $post->ID; ?>”><?php echo $post->post_title . ‘<span style=”font-weight:bold; float:right;”>’ . $venue_city . ‘</span>’; ?></td> If so, I did that and now the City is removed from the Table (row). |
is incorrect. That’s why things are broken now. What you actually need to copy and paste in there is:
|
|
|
I made the update. It City is on the Table (row) right aligned. Is it possible to have it centered or I would be happy with it following the Event Title (e.g. Principles and Practice of Real Estate -(dash) “City” or “City”)? After clicking Toggle: https://refocusrealestate.com/test-ee-with-elementor/ How do I remove the Search box on the Table View? How are Events listed on the Table View (e.g. alphabetically, start date)? |
You can remove the
You must have changed “Venue:” to “City:” in the template. You can change the label back to “Venue:” or to “Address:”.
You add
They’re ordered by next upcoming start date. |
|
|
I’m not exactly sure where the “Venue:” to “City” label is located in the template to change it. Where would I add the dash back to? |
The default template has this starting on its 45th line:
It appears that you’ve changed the label there to be “City”.
This part:
could be changed back to this:
|
|
|
Is it possible to include the City, State, and Zip in the Address? |
Do you mean when the table row is expanded? If so, where you have the code that displays the address, you can replace that with: |
|
|
That worked, thank you. It’s now displaying the Address on separate lines: Is there a way to have it on one line? |
Yes. You change this: |
|
The support post ‘Event Table View Template Appearance’ 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.