Posted: March 19, 2013 at 7:58 pm
|
No mater what I do to my event_list_display.php template nothing seems to change the outcome of how my events are listed. I literally deleted all of the information in that file and uploaded it through the ftp and nothing happened. Of course since then I reloaded the code. I am so confused on what actually controls the template for this page? Can anyone please point me in the write direction because I must be in the complete wrong place. Before I upgraded, I used this file to change how the events displayed. Anyway I need help. WP:3.5.1 |
|
Here is the file path I am working from: |
|
I also tried event_post.php and event_list.php. |
|
Hi, What you need to do is copy two files to uploads/espresso/templates:
Although you may not edit event_list.php, if it is not there was well then the plugin will ignore event_list_display.php. |
|
Those two files (_display being the file used to determine output, the other sets up the variables for you to use) you are editing are the correct files. That being said your problem is likely down to W3 Total Cache. Your events list page looks like it is cached and therefor you are not seeing the changes you make. |
|
Apologies Dean, You hadn’t replied when I started so it looks like I’m contradicting what you are saying. To clarify, the files you are editing are correct but ee will look in ‘uploads/espressso/templates/’ for any custom template files first, then fall back to the default ones in ‘event-espresso/templates/’ if none are found. |
|
Thanks for the quick response guys I will try this later this evening. |
|
Ok, guys I moved both of these two templates to that place in the ftp folder tree and I am still getting no results. I have cleared the cache on the page and it doesn’t look like anything is taking effect. Just for testing purposes I loaded a blank file in both locations and nothing changed at all. I am really confused by this. |
|
Is it possible to get your login details in order to look into this? FTP detail are needed. That way I can see what you have done and what needs to be done. If so, please send them via https://eventespresso.com/send-login-details/ NOTE: login details need to be Admin level. |
|
I’m reading this thread with interest. I’ve moved those two files, and have been able to edit some things to my liking (such as removing the rounded corners, and changing the order in which the information is displayed). How would I go about displaying the information (date, title, available spaces) horizontally to each other? |
|
@mwmwmw Hi, you will need to provide a little bit more information please. Where exactly is the data you are trying to modify? Do you have a link to the site? |
|
So I’m using the [EVENT_LIST] shortcode on this page: http://mischaweissenberg.com/?page_id=36 I’m trying to reduce the height of each event listing, and if possible display the information side-by-side. While it doesn’t use Event Espresso, here’s an idea of the look I am going for: |
|
Well, it is doable via the event_list_display.php, but looking at the example you gave I would be more inclined to use the Custom Files addon as that provides a great little table shortcode that can be modified. Whilst I can’t recreate this for you, what I would do is create table cells in the file and add the data into them so in essence the event_list_display becomes one table row, and as the code cycles through the events it generates a row per event. Adding in the month sections may be harder, as the lists were never meant to act like calendars. |
|
Dean, |
|
Great idea to put the entire event_list_display.php file inside a table. I’ve played around with it and can align the data in a horizontal row. |
|
Hey Dean, |
|
I havent received any login details under your username, could you resend please? send them via https://eventespresso.com/send-login-details/ NOTE: login details need to be Admin level. |
|
Ok, I just resent please let me know if you do not get it. |
|
Thanks, recieved. You had the uploads/espresso/templates/ directory named uploads/espresso/templates directory/ so it was causing issues, I have renamed it and the modified templates are now showing in the Template Settings page so you should be good to go. |
|
Well Dean I had it named that way because of this discussion we had over here: https://eventespresso.com/topic/event-id-2/. Did I do that wrong? |
|
Also in doing that it caused my event ID to show back up on my registration page: http://www.oneloveyoga-studio.com/event/classes/register?regevent_action=register&event_id=979 |
|
Hi Ashley, I could have perhaps structured the sentence better, but the word directory was just referring to it being a directory. Regarding the event ID, it is probably because you have old templates in the uploads/espresso/templates directory. You can rename the espresso folder and that will revert the plugin to using the defaults. Then you will need to copy the right files over to the newly created espresso folder (the plugin will automatically create one if one doesnt exist) and start modifications. |
|
I will take some time to review this over the weekend and be back in touch. |
|
OK, let me know if you need any further help or if we can mark this as resolved. Thanks |
|
Dean, it still does not seem to be taking effect. I currently have the event_list_display.php file setup to show the price, date, and available spaces above $event_desc. The display file will not read this correctly and is placing the available spaces below the event description. I also added a custom class to the start date and it is not reading in firebug. Then I tried to update the registration_page_display.php with no luck. I am still very unclear as to why this is not working can you please look into further and let me know of the steps I need to take? |
|
Hi Ashley, I would start afresh here. Rename the Espresso folder to OLD_Espresso or something similar. Add a new Espresso folder. Copy the event_list.php and event_list_display.php from wp-content/plugins/event-espresso/templates to the new Espresso folder. Don’t copy any more files unless you will be actively editing them. This will mean you are using the default templates so it will get rid of the event ID number that is showing. Edit those files with your changes. |
|
I just followed through those steps and nothing has changed. It looks like this is just going to work? I am really at a loss here of what I need to do to get this to happen. |
|
I mean I may be able to get a work around to get satisfactory results, but when the next update comes around there is a chance that all of this could get messed up. |
Hi Ashley, What is the exact location of the file where you are making this change? Can you post the contents of the file in a gist or pastebin so we can take a look? When you copy over a template file to /wp-content/uploads/espresso/templates, the updates do not overwrite these files. So all you need to do to stay up to date is copy over any changes from the update into your custom file. This only applies if there is a change in the file in the update. |
|
|
Josh, This part is concerning to me because it is reading a file from somewhere else and I am not sure where? That is why I am concerned about a future update messing up my setup. For right now what I am trying to do is move the info that states “Available Spaces” above the event description. I believe in my file I do have this setup in a way to be displayed as such. I have copied the file to pastebin: http://pastebin.com/8Vwtc1aW. Also I gave site admin and ftp credentials to Dean if you need to investigate into anything further. Thanks for taking the time to look at this. |
|
For some reason, it was pulling the event_list_display template from your theme’s directory. I renamed the copy in there to not_event_list_display.php, and now it is using the copy in uploads/espresso/templates. |
|
Yes, the templates can now be added to the theme directory as well as the templates folder, I didnt think to look there so good catch Sidney. |
|
Ok, that is awesome thanks for doing that. So if I wanted to update another template I should take the following steps: Please let me know if that is correct, and thanks for all the help. |
|
You don’t have to rename the folder or file in the plugins/espresso/templates directory. The system first looks in the uploads/espresso/templates directory, and only if it does not find the template there does it then look in the plugins/espresso/templates directory. |
The support post ‘Event List Template’ 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.