soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Wordpress Login customization #2881

Open dp466 opened 2 years ago

dp466 commented 2 years ago

Hi all! it would be nice to customize the default login page used to access the panel ive seen plugin which can do this but they are limited and we cannot use Oxygen on top of their plugin to make it look nice and the cherry on top would be to have the option to change the default URL path ex : https://myDomain/SecretLogin.php

people building sites for other companies would offer a more processional looking site without that default login page we find everywhere it could also prevent bot scans and brute force attempt

look what an other paid plugin is capable of doing : https://www.technominex.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.technominex.com%2Fwp-admin%2F&reauth=1

Mtarnuhal commented 2 years ago

I don't see need for this. It adds unnecessary bloat. and you could easily add this via a custom plugin.

<?php
/*
Plugin Name: Custom Login Page
Description: Custom Login Page
*/
/* Start Adding Functions Below this Line */
function custom_login_css() {?>
    <style type='text/css'>
    body.login { background-image: url("/assets/images/login_background.svg"); }
    body.login h1 a { background-image: none, url( "/assets/images/logo.svg"); background-size: contain; width: auto; }
    #login { position: relative; top: 50%; transform: translateY(-50%); padding-top: 0; }
    #login form { border-color: #007cba; }
    #login .wp-hide-pw { color: #444; }
    input[type="checkbox"]:focus,
    input[type="password"]:focus, 
    input[type="text"]:focus, 
    .login .button.wp-hide-pw:focus { border-color: #007cba; box-shadow: 0 0 0 1px #007cba; }
    input[type="checkbox"]:checked::before { content: url("data:image/svg+xml;utf8,<svg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27><path%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%231e8cbe%27%2F><%2Fsvg>"); }
    @media screen and (max-height:550px) {
        #login { top: unset; transform: translateY(0); }
    }
    </style>
<?php }
add_action('login_head', 'custom_login_css');

function custom_login_logo_url($url) {
     return 'https://example.com';
}
add_filter( 'login_headerurl', 'custom_login_logo_url' );

function custom_login_logo_url_title() {
    return 'Your Site Name and Info';
}
add_filter( 'login_headertitle', 'custom_login_logo_url_title' );
/* Stop Adding Functions Below this Line */
?>
QuirkyRobots commented 2 years ago

Customising the login page is not bloat or unnecessary. It's a normal feature on most page builders. It'd just be like styling 404 or search pages. It's also important because when designing a site for a client, having default WordPress branding on the site is frowned upon and looks unprofessional, even if it's not part of the websites menu system.

I suspect Oxygen plan to have this option in the near future.