How to remove widget from footer on specific pages?
-
As per subject above i created custom-footer.php
<?php
/**
* Template for displaying the footer
*
* Contains the closing of the id=main div and all content after
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?></div><!– #main –>
<footer id=”colophon” role=”contentinfo”>
<?php
/*
* A sidebar in the footer? Yep. You can can customize
* your footer with three columns of widgets.
*/
if ( ! is_404() )
//get_sidebar( ‘footer’ );
?><div id=”site-generator”>
<?php do_action( ‘twentyeleven_credits’ ); ?>
” title=”<?php esc_attr_e( ‘Semantic Personal Publishing Platform’, ‘twentyeleven’ ); ?>”><?php printf( __( ‘ %s’, ‘twentyeleven’ ), ‘All Rights Reserved’ ); ?>
</div>
</footer><!– #colophon –>
</div><!– #page –><?php wp_footer(); ?>
</body>
</html>echoed this file on a page but still getting footer widgets.Kindly confirm me the codes
- The topic ‘How to remove widget from footer on specific pages?’ is closed to new replies.