Footer doesn’t display in page.php

Question

So I’m trying to integrate static HTML/CSS/JS into WordPress and everything goes really well, but now I realised that my footer isn’t displaying in my individual static pages (page.php). But I can see my footer in front (index) page and in my custom contact form page.

This is my page.php file:

<?php get_header(); ?>

    <!-- Page Content-->
    <div id="content" class="snap-content">

                <div class="header-clear"></div>
                    <div class="content">
                        <div class="container no-bottom">

                            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

                            <h2><?php the_title(); ?></h2>
                            <p><?php the_content(); ?></p>

                            <?php endwhile; else : ?>
                                <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
                            <?php endif; ?>

                        </div>
                    </div>
                </div>

<?php get_footer(); ?>

I also have index.php and front-page.php files (both have <?php get_header(); ?> and <?php get_footer(); ?> functions).

And yes, in my footer.php I’m calling <?php wp_footer(); ?> right before the closing tag.

Appreciate any help.

EDIT: I’ve tried a lot of different variations and wirte some dummy static html content inside page.php, but whatever I do and change, I can’t make footer appear.

EDIT 2: Why it’s happening? enter image description here

0
, Deimantas Brandisauskas 4 years 2020-02-13T08:39:15-05:00 0 Answers 76 views 0

Leave an answer

Browse
Browse