links or functions for log in, log out, register
Theme: my own custom theme
note: *i didnt use bp-default theme/child theme, from what i understand this is not needed for this version of buddypress (am i right?)
This might be a very noob question but i’m stuck with this for two days already. T_T Its my first time to install BuddyPress.
I just want to change the location of the login | register in the admin bar.
I’m planning to move it to the header and hide the admin bar to logged out users.
and came up with this:`<?php if ( !is_user_logged_in() ) : ?>
<h4><?php echo bp_core_get_userlink( bp_loggedin_user_id() ); ?></h4>
<a class=”button logout” href=”<?php echo wp_logout_url( wp_guess_url() ); ?>”><?php _e( 'Log Out' ); ?></a>
<?php else : ?>
<a href=”<?php echo get_site_url(); ?>/wp-login.php”>Login</a>
<a href=”<?php echo get_site_url(); ?>/registration”>Register</a>
<?php endif; ?>`
But even when the user is logged out, it still says log out and isnt clickable.
Thank you very much in advance!
You must be logged in to reply to this topic.