links or functions for log in, log out, register
-
wordpress 3.5.1
buddypress 1.7.1
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?)————–
Hello guys!
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.
I just want a simple Login | Register (if user is log out, and when clicked go to their own respective pages)
and be changed to Log Out (if user is logged in)i have checked out:
https://buddypress.trac.wordpress.org/browser/tags/1.7/bp-themes/bp-default/sidebar.phpand 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! 🙂
- The topic ‘links or functions for log in, log out, register’ is closed to new replies.