Different footer for different pages not working
-
I’ve created a new footer footer-pillpack.php and I have the original footer footer.php
I can put each one on the same template and they both show, using
<?php get_footer( ‘pillpack’ ); ?>
or
<?php get_footer(); ?>
so i know the above code is working
What I’m trying to do is have the footer-pillpack.php show on only one page called: https://a1medicalsupply.us/pillpack/
And footer.php show on every other page.
Here is my code that I am putting on my page.php file
<?php
if ( is_home() ) :
get_footer();
elseif ( is_single( ‘pillpack’ ) ) :
get_footer( ‘pillpack’ );
else :
get_footer();
endif;
?>It’s not working. The footer.php file is showing on every page including the https://a1medicalsupply.us/pillpack/ page.
I’m new to this… Any one know what I’m doing wrong?
- The topic ‘Different footer for different pages not working’ is closed to new replies.