WordPress.org

Forums

Twenty Eleven
How to remove widget from footer on specific pages? (1 post)

  1. Eugene.chint
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.