WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Sidebar remove? (5 posts)

  1. dev82
    Member
    Posted 3 years ago #

    Hello Guys,

    how can i remove my sidebar from only the first Page? not all pages when the user click the next pages, only the first page.

    my adress is:

    regards

    Carsten

  2. Samuel B
    moderator
    Posted 3 years ago #

  3. dev82
    Member
    Posted 3 years ago #

    Hi Samuel,

    i know to create an own template. but how can i remove the sidebar.

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    in the front page template (index.php ?) use:

    <?php if( is_paged() ) get_sidebar(); ?>

    http://codex.wordpress.org/Function_Reference/is_paged

    your problem will be to stretch that page to full width, as your theme does not have any 'paged' sensitive css classes.

  5. dev82
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic