WordPress.org

Forums

Remove sidebars from custom home page (2 posts)

  1. MultiformeIngegno
    Member
    Posted 3 years ago #

    Hi! :)
    I'm using a custom index.php for my website and as I read in the codex I'm using:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    and everythign works fine.

    The question is: how can I disable sidebars only from my custom home page? I tried with is_home but it doesn't work (I think because it's not really the "home" wp thinks.. it's a custom php file that bridges to WP...) I also tried with:

    define('sidebars_widgets', false);

    But no luck..

    Can you help me? :)

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Why not use a static front page with a custom page template instead?

Topic Closed

This topic has been closed to new replies.

About this Topic