Malformed calendar

Home Forums Calendar Products Events Calendar PRO Malformed calendar

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1358519
    social-ink
    Participant

    Hello,
    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!

    #1359411
    Andras
    Keymaster

    Hello 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,
    Andras

    #1360289
    social-ink
    Participant

    Great. We changed the TR/THEAD a little bit.

    #1360561
    Andras
    Keymaster

    Awesome, 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,
    Andras

    PS: 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!

     

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Malformed calendar’ is closed to new replies.