Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: problem with using the home theme as a user theme


Korhan Ekinci
Participant

@korhanekinci

Ok Kunal replace this part:

<?php
if ( function_exists('wp_logout_url') ) {
$logout_link = '/ <a href="' . wp_logout_url( $bp->root_domain ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
} else {
$logout_link = '/ <a href="' . $bp->root_domain . '/wp-login.php?action=logout&redirect_to=' . $bp->root_domain . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
}

echo apply_filters( 'bp_logout_link', $logout_link );
?>

With This:

<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>

And that should solve the logout issue.

Skip to toolbar