Home › Forums › Support › Make bbPress look like this? › Reply To: Make bbPress look like this?
June 28, 2016 at 8:26 am
#205106
Tom
Lead Developer
Lead Developer
The best way to find that code is to use the Inspect element tool in your browser to find the classes of those elements. Then search the CSS for those classes 🙂
The button is super simple:
add_shortcode( 'gp_login', 'gp_login' );
function gp_login() {
if ( ! is_user_logged_in() )
return '<a class="button see-through login-button" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">Login</a>';
else
return '<a class="button see-through login-button" href="' . esc_url( wp_logout_url( get_permalink() ) ) . '">Logout</a>';
}