• Resolved openboxstudios

    (@openboxstudios)


    I’m hoping someone else has run into this issue and can assist.

    I have some custom templates, just modifying the layout, nothing super crazy. The issue is that when someone uses the vanilla date picker to select a date, the first time it loads fine, all is normal. If a user uses it a second time, it reloads EVERYTHING into view again, basically duplicating the entire header/events content area and footer. So there are 2 instances of the page on top of each other.

    I have tried removing the templates piece by piece to narrow down the issue with no luck. The only thing I know is that it’s specific to the date picker itself, all the other links, etc. work as expected including the Previous/Next events links.

    When the duplication starts happening there is some malformed JSON in the breakpoints.js file that breaks in console, and it’s due to loading .container scripts more than once. If I disable the breakpoints in the template, it stops the console error, but it still duplicates all the content on the page so I do not think that is the actual cause.

    Any thoughts?? I’m at a loss.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter openboxstudios

    (@openboxstudios)

    Apparently I just needed to post about it to finally solve it, ;D

    If anyone comes across this problem, here is what was happening.

    I have a new DIV in the /tribe/events/v2/list.php template above the main container-classes DIV, that is what’s causing the issue.

    $header_classes = [ 'tribe-events-header' ];
    if ( empty( $disable_event_search ) ) {
    	$header_classes[] = 'tribe-events-header--has-event-search';
    }
    
    ?>
    
    <div class="custom-stuff"></div>
    
    <div
    	<?php tribe_classes( $container_classes ); ?>
    	data-js="tribe-events-view"
    	data-view-rest-nonce="<?php echo esc_attr( $rest_nonce ); ?>"
    	data-view-rest-url="<?php echo esc_url( $rest_url ); ?>"
    	data-view-rest-method="<?php echo esc_attr( $rest_method ); ?>"
    ....

    Hi there,
    Im getting similar problem ish

    Using infinite scroll for blogs with GP premium (theme function): the loaded blogs come onto the header! if plugin deactivated then blogs loads normally!
    https://ibb.co/7jwHxPC

    Its not identical issue
    but attempted to add this div as above, didn’t solve it

    have you come across such thing? or do you know how you can help please?
    thank you in advance

    Plugin Support Jaime

    (@jaimemarchwinski)

    @openboxstudios I’m glad to hear that you were able to resolve your issue!

    @wphaider I would recommend reaching out to GeneratePress’s support here.

    I hope that helps!

    Thanks,
    Jaime

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Events page content duplicating itself on second ajax load??’ is closed to new replies.