Posted: 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: |
|
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: Then be sure to save changes. — |
|
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. 🙂 |
|
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. |
|
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. |
|
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.