Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need Help in customizing user homepage…

  • Avatar of sandeepdude
    sandeepdude
    Participant

    @sandeepdude

    Hello,

    I need help in making a customized homepage for logged in users.

    Like,When the user is not logged in,he can see only a certain widgets like members widget and groups widget in the index page.

    When he logs in,he can see other widgets like My friends, my friends online, my groups,my friends activities etc..

    How can i make this? please help..

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Windhamdavid
    Windhamdavid
    Participant

    @windhamdavid

    you could wrap the <div>’s you want to hide in this conditional <?php if ( is_user_logged_in() ) : ?>

    Avatar of sandeepdude
    sandeepdude
    Participant

    @sandeepdude

    Ok.. i found that i can edit this at the home.php in bphome theme.

    But how can i call a widget in buddypress?

    Avatar of Windhamdavid
    Windhamdavid
    Participant

    @windhamdavid

    if you just want to hide the widget from non logged in users, just wrap a div around it in home.php. Register the widget area in functions.php in your template …you might want to start here. – http://codex.wordpress.org/WordPress_Widgets_Api

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

    @r-a-y

    Or you could use a widget plugin like Widget Logic to control where and when a widget should show up in your sidebar.

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

You must be logged in to reply to this topic.