Support

Home Forums Event Espresso Premium Excerpt – spacing issue with dates/time using EE4 +Canvas theme from Woothemes.

Excerpt – spacing issue with dates/time using EE4 +Canvas theme from Woothemes.

Posted: January 25, 2016 at 1:00 pm


SFC

January 25, 2016 at 1:00 pm

Hi, please see http://www.strategicfirecontrol.com/events/

You’ll notice the excerpt following an event listing contains spacing issues for the titles, dates and times making a messy and unprofessional presentation. I’m using Canvas from Woothemes for my site and currently running EE4 4.8.31.p

Here’s an example:
Level 1 – Workplace First Aid (Jan 27 2016)January 27, 20168:00 am – 4:30 pmLevel 1 – Workplace First Aid (Feb 3 2016)February 3, 20168:00 am – 4:30 pmLevel 1 – Workplace First Aid (Feb 4 2016)February 4, 20168:00 am – 4:30 pm – 7 Training Hours. CPR and breathing emergencies in adults; first aid for bleeding; sudden illness and injury emergency care skills for the occupational […]


Lorenzo Orlando Caum

  • Support Staff

January 25, 2016 at 1:22 pm

Hello,

Your are seeing an excerpt being shown.

Go to WP dashboard –> Event Espresso –> Events –> Templates. Then look for the event list pages and set the description to show full description.

It looks like this:

http://cl.ly/1R2m3H2C0l2r

Then be sure to save changes.


Lorenzo


SFC

January 25, 2016 at 6:36 pm

Thanks but I don’t want the full description. I want to fix the odd spacing issues between the dates and times that auto display if possible. 🙂


Tony

  • Support Staff

January 26, 2016 at 4:33 am

The problem is caused because canvas is running its own functions on the excerpt causing the_content filters to be fired multiple times and EE is injecting the event details into the_content filter that runs for the excerpt.

The easiest fix is to use something like this:

https://gist.github.com/Pebblo/43ada112b6ecc80871eb

That’s function is currently packaged as a Site Specific Plugin above, you can install that on your site and it should fix the EE archives.

Note that the above function removes a function added by Canvas to remove the [dropcap] shortcodes from the excerpt. If you are using those shortcodes in the content and see them in your event list you need to set a specific excerpt within the event editor that does not use those shortcodes.


SFC

January 27, 2016 at 9:22 am

Thanks very much. That did it.

I wish EE didn’t need these kinds of weird PHP adaptations to function well with relatively popular themes. Perhaps EE might want to create a customized addon that addresses some of these common concerns rather than having their clients create their own plugins while spending hours trying to figure out these solutions.


Josh

  • Support Staff

January 27, 2016 at 1:35 pm

I wish EE didn’t need these kinds of weird PHP adaptations to function well with relatively popular themes.

I get your frustration, you know what though? The solution that Tony gave to you to help you wasn’t intended to be weird. It’s a very specific solution that will just work one theme only. It’s not exactly common concern territory when it’s one theme doing one thing out of the ordinary.

We work really hard to make Event Espresso just work with thousands of WordPress themes, out of the box. Then if a theme does something that’s not standard with the normal WordPress content and excerpt filters, even if it’s a popular theme, we’ll also help out with making a workaround fix.

One alternative would be require all themes to provide their own set of templates to display event info and not hook into the content filters at all, which I think we can both agree would not work out so well.

The support post ‘Excerpt – spacing issue with dates/time using EE4 +Canvas theme from Woothemes.’ 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.

Event Espresso