Skip to:
Content
Pages
Categories
Search
Top
Bottom

Widget Logic and Conditional Tags in Citizen Kane Theme?

  • Avatar of thealchemist
    thealchemist
    Member

    @thealchemist

    Here’s a bit of an oddity. Installed widget logic and using conditional tags to keep the “Members” and “Groups” widgets ONLY on the home page. Normally this is done with either is_home() or is_front_page(). Unfortunately, the widgets won’t appear on the home page with either tag.

    I have the “Recent Posts””Categories” and “Archives” widgets removed from the home page to display only on “single” pages. It’s just the “Home” page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of thealchemist
    thealchemist
    Member

    @thealchemist

    Sincee I have a PAGE called “Home” assigned as “Widget Home Page” with ID number … hmmm … I’ll just use is_page(#) DOH! … … … Moments later … that didn’t work either.

    Avatar of thealchemist
    thealchemist
    Member

    @thealchemist

    Likewise, if I want to have a widget appear on EVERY page/post EXCEPT “Home” I would normally use !is_home() but because widget logic is having some trouble distinguishing the home page of Citizen Kane I can’t use this option.

    Avatar of thealchemist
    thealchemist
    Member

    @thealchemist

    ? Anyone? Am I barking up the wrong tree?

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    This might not apply to you, but If you’re using the BP activity stream as the front page, you’d have to use a BuddyPress-specific function:
    `bp_is_front_page()`

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Thanks @r-a-y

    Avatar of thealchemist
    thealchemist
    Member

    @thealchemist

    @r-a-y Thanks for the suggestion. But did not work; and probably because the regular BP Activity Stream is not the home page for this theme.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.