Website Designers and Webmasters

Dedicated to all the tasks Webmasters, Website Developers and Website Designers find themselves facing.

WordPress Events Calendar Plugin H2 Bug

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 »

  1. You just SO saved my bacon. My eyes are totally crossed from trying to figure out this little bit about the H2, and you really helped. Thank you!!!

    Comment by LJ Bothel — December 7, 2010 @ 4:07 am

RSS feed for comments on this post. TrackBack URL

Leave a comment