• Resolved devbymike

    (@devbymike)


    WordPress 4.8.2
    Events Calendar 4.6.2

    Single event view, nukes my footer in my theme. Not sure why.

    https://domaine-les-crayeres-2017.devalias.com/events/event/menu-truffe-blanche/

    Using simple page template, everything after the last bit of code in single-event.php won’t be displayed on the page.

    </div><!-- #tribe-events-content -->

    My page template which is being used looks like this

    <?php 
    include('includes/head.php') ?>
    
    <body id="news" <?php body_class(); ?>>
        
        <?php include('includes/header.php') ?>
        
        <section class="main">
    
            <div class="page-banner">
                <!--SLIDESHOW-->
                <div class="slideshow slideshow-banner">
                    <div class="myslider slider-banner">
                        <div editableslider="1" minwidth="2200" minheight="877"><div class="novaslider hideonload" style="display: block; z-index: 11; position: absolute; overflow: hidden; width: 1588px; height: 540px; right: auto; bottom: auto; top: 0px; left: 0px; opacity: 1;"> 
                                <div class="novaslider_bgimagediv"><img class="novaslider_bgimage" novagal="4245138" novagalfirst="1" src="/_novaimg/4245138-1325879_0_95_4252_1694_2200_877.rc.jpg" alt="image" width="4252" height="1694" style="width: 1588px; height: 633px; left: 0px; top: -46px; right: auto; bottom: auto;"></div></div>
                        </div>   
                    </div> <!---/mySlider-->
                    <div class="gradient-banner" style="opacity: 1;"></div>
                    <div class="logo-banner" style="opacity: 1;"></div>
                </div><!---/slideshow-->
    
                <div class="banner-subnav">
                    <ul class="subnavigation">
                        <li><a class="latests-news" href="<?php get_bloginfo('wpurl'); ?>/news.html">News</a></li>
                        <li><a class="event-calendar" href="<?php get_bloginfo('wpurl'); ?>/events/">Event Calendar</a></li>
                    </ul>
                </div>
            </div>
    
            <div class="wrapper wrapper-pad">
                <div class="post post-title">
                    <h1 class="page-title no-margin" novaref="4235736" novatype="txt">Event Calendar</h1>
                </div>
    
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
                    <?php the_content(); ?>
    
                <?php endwhile; endif; wp_reset_query(); ?>
    
            </div> 
    
        </section> 
    
    <?php include('includes/footer.php') ?>
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

    So the event details are displayed, the content is closed but no error, no footer. no wp_footer, which means my scripts and stuff isn’t being loaded. I can’t for the life of me figure out what this problem is about. The main calendar page loads correctly
    https://domaine-les-crayeres-2017.devalias.com/events/

    Also noticed this is happening if I switch over to the “twentyseventeen” theme as well.

    • This topic was modified 7 years, 5 months ago by devbymike.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter devbymike

    (@devbymike)

    Solve it myself.

    I use

    add_action( 'wp_enqueue_scripts', 'script_managment', 99);

    To move scripts to the footer. For some reason, if these are called there, on this inside page it breaks the continuity of the page. Once it was moved back to the header, the page loaded normally with the proper expected results.

    Barry

    (@barryhughes-1)

    Glad you solved things ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single Event breaks Footer no wp_footer(); output’ is closed to new replies.