[Resolved] Events Widget adding extra Paragraph tags
I love this plugin, however for the Events widget it is producing HTML code with extra Paragraph tags. In my Events widget the List Item Format is:
<a href="#_EVENTPAGEURL"><strong>#l, #M #j </strong></a>#_NOTES
What I see in the HTML is instead:
<ul><li><a href='event-path-name'><strong>Monday, Mar 4 </strong></a><p><p><p>My event notes show up here</p></p></p></li>
So why is the Widget inserting three paragraph tags?
My hack to work around this paragraph bug was to edit the plugin file: widgets/em-events.php
Starting at line 67 there’s a loop: foreach($events as $event)
$html = $event->output($instance['format']); $html = str_replace('<p>','', $html); $html = str_replace('</p>','',$html);
Then in the loop I replaced the $event->output with $html. Now my HTML formatting is correct, but why do I have to hack this file? Why is the widget adding extra Paragraph tags?
- The topic ‘[Resolved] Events Widget adding extra Paragraph tags’ is closed to new replies.