• Hi!

    I would like to hide a widget juste on the home-page (and maybe use this tip on another page).

    It’s a simple code on the widget:

    <li><h3>Ev&egrave;nements &agrave; venir</h3>
     <?php ec3_get_events() ?>
     </li>

    I already tried with a

    if(!is_home()){my code ...}
    or
    if(!(is_home())){my code ...}

    but it isn’t working.

    I already saw this thread: http://wordpress.org/support/topic/133642?replies=3
    but it’s a modification in the widget.php and i would like a modification just in the sidebar.php

    I already tried this:

    <?php if(is_home())
      return;
      echo '<li><h3>Ev&egrave;nements &agrave; venir</h3>';
      ec3_get_events(7);
      echo '</li>';
    ?>

    too but it’s not working …

    Any tips ?
    Thanks a lot !

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide a widget on the home page’ is closed to new replies.