[Theme: Elbee Elgee] [PATCH] Events Manager category page contents are jumbled
-
Here’s a curiosity I ran into and was able to fix for my site.
In Elbee Elgee theme the category pages of Events Manager‘s event categories are displayed as a jumbled mess – text with all the HTML markup stripped. With the 2011 theme they are displayed as they should.
Here’s the beginning of the proper HTML output on 2011:
<article id=”post-” class=”post- type- status- hentry”>
<header class=”entry-header”>
<h1 class=”entry-title”>Category Name</h1>
</header><!– .entry-header –><div class=”entry-content”>
<h3>Upcoming Events</h3>- Event Title – 10 Aug 2012 – 14:00
- Event Title 2 – 10 Aug 2012 – 15:00
Here’s what I get on Elbee Elgee:
<div id=”post-” class=”post- type- status- hentry”>
<h2>Category Name</h2><div class=”itemtext”>
<p>Upcoming EventsEvent Title – 10 Elo 2012 – 14:00Event Title 2 – 10 Elo 2012 – 14:00All the HTML is stripped off of the page contents, which are then wrapped inside a pesky
<p>
. After digging into Elbee Elgee code, I found the culprit on theloop.php, lines 17-21:if ( is_archive() or is_search() or is_tag() ) { the_excerpt(); } else { the_content('Continue reading'. " '" . the_title('', '', false) . "'"); }
The solution was to remove all others of these while leaving only this line intact:
the_content('Continue reading'. " '" . the_title('', '', false) . "'");
ZaMoose and Marcus: What do you think is the best solution for the long run? Should EM display a category’s event lists as something else than an archive page, or should this be taken into accord on the theme side?
To me it would feel natural that this category’s event list page would be displayed like the main events list page, only as the category in question would have been submitted through the form. After all the setup work of the event list formatting it feels weird to have a list of events by category that follows the main lists’ formatting only if that formatting is copy-pasted from and to the appropriate plugin settings and the category list doesn’t clash with a theme that uses the_excerpt() for archive pages. Especially so since submitting the event form with having selected a category only yields the exact same results but in a different formatting.
- The topic ‘[Theme: Elbee Elgee] [PATCH] Events Manager category page contents are jumbled’ is closed to new replies.