Wordpress

WordPress Events Calendar Plugin H2 Bug

1 Comment

I just installed WP Events Calendar (6.6-beta) for the first time and installed the large calendar on a page.

For some reason, the Month of the Calendar was an

and I couldn’t find the “Previous Month” and “Next Month” buttons. That is because there is an <H2> before the table that houses the months…

You can edit the HTML of that section aroun line 400 of “events-calendar/ec_calendar.class.php” Here’s what I did.

Before:

<h2 style="text-align:center;">
<table id="CalendarLarge-Header" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td width="25%"><div align="left"><span id="EC_previousMonthLarge"></span></div></td>
<td width="50%"><div id="EC_current-month" align="center"><div id="EC_ajaxLoader"><img src="$ajax_loader" /></div>$titMonth $year</div></td>
<td width="25%" align="right"><span id="EC_nextMonthLarge"></span></td>
</tr>
</table>
</h2>

After:

<table id="CalendarLarge-Header" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td width="25%"><div align="left"><span id="EC_previousMonthLarge"></span></div></td>
<td width="50%"><div id="EC_current-month" align="center"><div id="EC_ajaxLoader"><img src="$ajax_loader" /></div><h3>$titMonth $year</h3></div></td>
<td width="25%" align="right"><span id="EC_nextMonthLarge"></span></td>
</tr>
</table>

I just took out the <h2> and added an <h3> around the $titMonth $year. You can edit it as you wish.

Enjoy,
Ashton Sanders

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *