Custom login page with Cornerstone / Pro

Hi guys, I’d like to know how I can make a custom login page with cornerstone?

On another website I had no troubles doing it as WooCommerce did the job for me and I was able to add CSS code, but I’d like to know if there’s a way to make it without using plug-ins.

Btw, I looked for the answer on the forum, but some pages keeps having a 504 or 502 error. Why ???

https://theme.co/archive/forums/topic/custom-login-page-with-cornerstone/

Hello @Giovxiii,

Thanks for writing to us.

Regretfully there is no option for that custom login I would suggest you please have a look at this article to learn more about how to get a custom login.


Hope it helps
Thanks

Ok thanks. I finally decided to add the following code to the child theme function which allows me to use a shortcode to deploy the login form and create the page with cornerstone. A little bit of custom css and we’re done without any plugins !


function custom_login_form_shortcode() {
ob_start(); ?>

<div class="custom-login-form">
    <?php wp_login_form(); ?>
</div>

<?php
return ob_get_clean();
}
add_shortcode('custom_login_form', 'custom_login_form_shortcode');

Shortcode : [custom_login_form]

Don’t hesitate to tell me if there’s any wrong things written here.

1 Like

Hey @Giovxiii,

There’s nothing wrong with your custom shortcode, it should be working.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.