WordPress.org

Ready to get started?Download WordPress

Forums

Exclude From Index (3 posts)

  1. someguy111
    Member
    Posted 4 years ago #

    Hi,

    I just put an embed code for a chat in my sidebar.php. The chat is now showing on the sidebar on every page. I don't want it to appear on my index page though, I want to put something else there. How could I do this?

    Thanks

  2. someguy111
    Member
    Posted 4 years ago #

    Does anyone know? Any help would be appreciated.

  3. alainS
    Member
    Posted 4 years ago #

    Use the conditional tag : is_home().

    if ( is_home() ) {
    DO THIS }
    else {
    DO THAT }

    More examples : http://codex.wordpress.org/Conditional_Tags

Topic Closed

This topic has been closed to new replies.

About this Topic