Posted: January 5, 2021 at 2:47 am
|
Hi there I am trying to re-order the display of a single event’s Main Description and Excerpt on the front-end. As you can see here, I am having to put the main event information in the excerpt section in order for it to be displayed first, whilst the less important info is in the Main Description as it currently displays at the bottom of the single event page. I think we are using a custom single event template (it was made by one of our previous employees) so I am struggling to find the correct way to fix this. Please let me know if you can assist me in re-ordering the way these sections display. |
Hi there, First, to confirm if you are using a custom template. In your theme do you have a If so, post the contents of that file to a Gist or Pastebin and I’ll take a look. |
|
|
This reply has been marked as private. |
Line 60 is what is calling the excerpt, to call the event details in that location you’d need to move this:
From line 66, up to remove line 60. However, ‘espresso_events-header’ template also creates a header for the event, which you’ll lose when you remove that call so will need to add your own code (usually What output are you looking for on that page? |
|
|
Ah ok, I see. In Event Title Essentially the Main Description and Excerpt need to be swapped around. Please let me know what I need to do to achieve that. |
Then you’ll need something like:
|
|
|
Hi Tony Thanks a mil. It seems to work for the most part, however where I expect to see the content of the excerpt it’s only printing the words See HERE for screenshot example. Please let me know if I’m doing something wrong or if you can help me resolve. Much appreciated! |
That’s not something you’ve done, it’s me missing the PHP tags around the function! I’ve updated my snippet above so it should work now. |
|
|
Works like a charm. Thanks a mil! |
You’re most welcome. |
|
The support post ‘Change display order of event's main description and excerpt’ 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.