Support

Home Forums Event Espresso Premium No space between year & time in event list using the default short code

No space between year & time in event list using the default short code

Posted: July 11, 2019 at 10:06 pm


DesignByKiltz

July 11, 2019 at 10:06 pm

We’re using the default shortcode [ESPRESSO_EVENTS] on the page & this is how the date / time line shows:
July 23, 2019 – July 25, 20199:00 am – 5:00 pm

How do we get space between 2019 and 9:00 am?

For reference:
https://oakfirescience.dbkdev.com/events/


Tony

  • Support Staff

July 12, 2019 at 2:12 am

Hi there,

Are you using a custom function to change the output of the datetime list?

The syntax used for that date and time output is not the default from Event Espresso and is incorrect.

So at a guess you are overriding the espresso_list_of_event_dates() function, your loading a custom content-espresso_events-datetimes.php template file?


DesignByKiltz

July 22, 2019 at 6:12 pm

No, we’re using the standard shortcode without anything added to it. That’s why I was surprised that the formatting was incorrect.

[ESPRESSO_EVENTS] is the only thing on that page.


Tony

  • Support Staff

July 23, 2019 at 2:49 am

You may be using the default shortcode on the page itself, but the output is definitely not the default output from Event Espresso. The templates can be overridden from within your theme or the function used can be overridden within functions.php or a custom functions plugin.

This is the output from your page – https://monosnap.com/file/lNgUz4pkR5MQvHxMvspcRV4BpTCZCf

Note the DateTime output is not within list tags within the UL (meaning there should be <li> and </li> wrapped around the date and time)

This is the function EE uses to output those details – https://monosnap.com/file/KfeMVJ74FVZL3qYWjy3RU0t6FdFqVg

That code opens a UL, then immediately opens an LI tag for each datetime output.

Did you previously work with a developer to make some changes to the site and how EE outputs events?


DesignByKiltz

July 23, 2019 at 6:13 am

Let me check with my dev team. They shouldn’t have done any customization. I’ll reply back once I know more.


DesignByKiltz

July 23, 2019 at 1:37 pm

The team has reversed what they had customized & to make sure I had clean code, I removed/reinstalled the plugin. I’ve checked the theme functions file & don’t see anything related to the plugin, also checked CSS and there’s nothing.

I’m not seeing the <li>‘s in my code. Where else do I look for customizations?

  • This reply was modified 3 months ago by  Josh.


Josh

  • Support Staff

July 23, 2019 at 1:49 pm

You could check for the presence of a content-espresso_events-datetimes.php file within the theme, or within /wp-content/uploads/espresso/templates.

You’ll note that on the single event page, like this one, the datetime information displays as expected. So it’s likely not a function that’s overriding this.


DesignByKiltz

July 23, 2019 at 5:54 pm

There aren’t any templates in either location. For the theme, I checked both the child & parent theme.

I agree – the single event page works great.

Would it be worth my time at this point to pay for one of your techs to take a deeper look?


Tony

  • Support Staff

July 24, 2019 at 4:32 am

We could likely find the cause quicker by looking over the site ourselves yes, however depending on what is happening the solution may still need to be done by your developer.

By that, I don’t mean that we will simply look at a template etc and say ‘Nope! Not fixing that for you’ but if it turns out to be multiple changes to templates within the theme etc then the dev team will need to fix.

Note I know the above is a little vague but there’s something a little strange happening above on the site and we simply don’t know what that is until we take a look and see.

Something you can do to check if it’s a theme issue is temporarily switch to a default theme such as twentynineteen and check if the /events/ output is the same then.

But if you prefer for us to start looking into this ourselves you can purchase a support token, then go to your account page and you’ll see a link to redem your token below your license keys. Click the link, provide all of the requested details and we’ll take a look.

The support post ‘No space between year & time in event list using the default short code’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 3 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!