Login / Register links

Hi

I have a problem with my “login | register” / “username | logout” link on WP theme ‘LMS’. It’s currently pointing to a generic wp-login (using the S2member plugin in some way) which doesn’t collect the registration info I need…Likewise clicking on username takes you to an account page with the wrong info…both of which also look awful. I would like both links to point to different URLs.

As it is now, the login | register link works in the following way.

If logged in, it will show ‘username’ and a ‘logout’ option
If logged out, it will show a login | register option

I would like the following to happen.

If user is logged out and they click on ‘login | register’, then should take them to http://www.asned.org/greenlight/login-4/
If user is logged in and clicks on username, then should take them to http://www.asned.org/greenlight/account-3/ OR if they logout should take them to http://www.asned.org/greenlight/

The code I need to change is below. I know nothing about php.

Would somebody be able to help?

Many thanks in advance

Mick

[php]

                            echo '<li><a href="'.wp_logout_url(get_permalink()).'" title="'.__('Logout', 'dt_themes').'">'.__('Logout', 'dt_themes').'</a></li>';
                        endif;

						if(class_exists('WooCommerce') && dttheme_option('appearance', 'enable-header-cart')) {
							global $woocommerce;
							$cart_url = $woocommerce->cart->get_cart_url();
							echo '<li class="dt-sc-cart"><a href="'.$cart_url.'"><i class="fa fa-shopping-cart"></i></a></li>';
						}
                        ?>
                    </ul>
                </div>

[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service