Home › Forums › Calendar Products › Events Calendar PRO › Malformed calendar
- This topic has 4 replies, 2 voices, and was last updated 8 years, 7 months ago by
social-ink.
-
AuthorPosts
-
October 3, 2017 at 12:20 pm #1358519
social-ink
ParticipantHello,
We are using the Pro version and just ran it through the W3 Validator, it appears the table with class “tribe-mini-calendar” has two consecutive THEAD objects (one for navigating the table, the other for days of the week), which is not allowed. The file in question appears to be “./src/views/pro/widgets/mini-calendar/grid.php”. Can you offer a fixed, valid version for production?
Thank you!October 5, 2017 at 3:03 am #1359411Andras
KeymasterHello social-ink,
Thanks for going Pro and welcome to the forums!
Thanks for flagging that, I will let the developers know about that so they check if that needs to be changed.
Meanwhile what you can do is to create a template override. You can find more details on this topic in our Themer’s Guide. I’m going to give you the rough of it here.
Take the file you mentioned and create a copy of it here:
wp-content/themes/[your-theme]/tribe-events/pro/widgets/mini-calendar/grid.php
Open that new file for editing.
Remove lines 35-38 from the file. These to be exact:
</thead> <?php do_action( 'tribe_events_mini_cal_after_header' ); ?> <?php do_action( 'tribe_events_mini_cal_before_the_grid' ); ?> <thead>Save the file and you are done.
Note that this will remove the two actions you see in the code, so you will not be able to use those any more. If you don’t use them anyway, then you have nothing to worry about.
Let me know if this helps.
Cheers,
AndrasOctober 6, 2017 at 7:33 am #1360289social-ink
ParticipantGreat. We changed the TR/THEAD a little bit.
October 6, 2017 at 12:56 pm #1360561Andras
KeymasterAwesome, happy to hear you managed to solve this.
Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.
Cheers,
AndrasPS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
https://wordpress.org/support/view/plugin-reviews/the-events-calendar/PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!
-
AuthorPosts
- The topic ‘Malformed calendar’ is closed to new replies.
