wordpress - Stop the footer from showing in my about page? -
i trying have website not show footer on home page (aka front page) , page. if
statement have far:
<?php if ( !is_front_page()): ?> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="site-info"> <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'sylvieshimmy' ) ); ?>"><?php printf( __( 'proudly powered %s', 'sylvieshimmy' ), 'wordpress' ); ?></a> <span class="sep"> | </span> <?php printf( __( 'theme: %1$s %2$s.', 'sylvieshimmy' ), 'sylvieshimmy', '<a href="http://underscores.me/" rel="designer">underscores.me</a>' ); ?> </div><!-- .site-info --> </footer><!-- #colophon --> <?php endif; ?>
how can make footer not show on page well? far works front page. page template saved 'page-about.php'.
you can either make use of is_page()
or is_page_template
conditional tags
example
<?php if ( !is_front_page() && !is_page_template('page-about.php)): ?>
or
<?php if ( !is_front_page() && !is_page('name_of_about_page)): ?>
Comments
Post a Comment