Blog

How To Update The Login Link To Go To The WooCommerce Account Page

TORN City, the worlds largest multi-player text based crime game online.

When building a WooCommerce site, it’s a good idea to use a custom login page instead of the default wp-login.php. Your users will feel far safer and more comfortable when logging into your WooCommerce store if the login page looks like the rest of the site. The default login page doesn’t include any navigation, headers or footers, and unless you’re using a plugin will have the WordPress logo instead of your own. This is far from a coherent user experience, and could lead to the loss of a potential customer.

Updating Your Store’s Login URL

The code below will automatically redirect any logged out visits to /wp-admin instead to the WooCommerce login page, as well as updates any other functions that are displaying a link to the login page. This will provide a more consistent user experience to your store’s customers.

You can add this code to your theme’s functions.php file, or to a custom functional plugin.

https://gist.github.com/cameronjonesweb/d7e5796472051e25738c9c42fd6737d6#file-wc-account-login-php

Bonus tip: Make sure you are using an SSL certificate on any eCommerce site to help protect your users details.

Did you find this post useful?

YesNo