Treehouse: Grow your CSS skills. Land your dream job.

A text widget in WP that is displayed only on home page

  • # January 15, 2011 at 5:29 am

    I’m looking for a way to get a text widget displayed only on home page.

    # January 16, 2011 at 10:37 am

    I think you can create separate sidebars for each page, not sure how though, google it.

    # January 16, 2011 at 10:49 am

    there is a wordpress plugin, called widget logic that allows you to do just that.

    //wordpress.org/extend/plugins/widget-logic/

    Bob
    # January 16, 2011 at 11:29 am

    Or you could use the is_home function, like this:

    < ?php
    if ( is_home() ) {
    show widget
    } else {
    show something else
    }
    ?>

    //codex.wordpress.org/Function_Reference/is_home

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.