Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1244694

    For years I’ve been using the functions.php snippet to load a custom child/tribe-events/views/single-event.php, but it’s no longer working. I’ve tried everything in the support archives. I’ve tried the 1) “config-events-calendar”, 2) “tribe-events/views” and 3) “tribe/events/v2” attempts, as well as different variations of “single-event.php” and “single-event-no-mobile.php” from Enfold and The Events Calendar plugin files. I tried both enabling and disabling “Use updated calendar designs.” I can only get my customization to work on the parent theme. I need to add some stuff under <?php the_content(); ?>.

    Help?

    Enfold 4.7.6.3, WordPress 5.5.1, PHP 7.3.21.

    #1244989

    Hey armourcreative,

    You can try to use the ava_after_content filter and check if the page is a single event and then execute the code that you need.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1245011

    Thank you for your reply. I wasn’t able to get it to recognize that it was on an Events page. For instance, this didn’t trigger:

    function event_rsvp() {
        if ( tribe_is_event() ) {
            echo 'Single event page';
        }
        else {
            echo 'Not an events page'; // shows up on single Posts
        }
    }
    add_action('ava_after_content', 'event_rsvp');

    But I did find how to deactivate the Enfold version, and I’ll just update the native plugin theme files:

    add_theme_support( 'deactivate_tribe_events_calendar' );

    #1245332

    Hi armourcreative,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.