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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -