WordPress.org

Ready to get started?Download WordPress

Forums

remove widgets from static home page (2 posts)

  1. kingr
    Member
    Posted 4 years ago #

    Hi there,

    I have a static home page with a couple of tables, I would like to remove the widget sidebar from my static home page and use the space to extend my table. The widget must still be present on all the other page though.

    I have read this topic and found it usefull, but did not resolve my issue.
    http://wordpress.org/support/topic/288535

    I tried the code below, but no result, I also dont know where on page.php i must include it?

    <?php
      if ( is_home() || is_page('69') ) {
      } else {
        get_sidebar();
      }
    ?>

    There is two widgets with the theme I use and they called as below.

    <?php include (TEMPLATEPATH . '/sidebar1.php'); ?
    <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
    get_sidebar(); // appears no where on page.php

    any help...

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Try

    <?php
      if ( is_home() || is_page('69') ) {
      } else {
        include (TEMPLATEPATH . '/sidebar1.php');
        include (TEMPLATEPATH . '/sidebar2.php');
      }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic