oktadev / okta-wordpress-sign-in-widget

Replaces the WordPress login screen with the Okta sign-in widget
28 stars 26 forks source link

Customization options for login screen #7

Open cristacheda opened 5 years ago

cristacheda commented 5 years ago

It would be great if you could add plugin options of filters for personalising the WordPress login page just like the organisation OKTA login page.

Crag-Monkey commented 4 years ago

I agree, that would be a good addition.

In the meantime, this works to pull your logo in:

<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
     $(document).ready(function(){
          if ($('div.okta-sign-in-header').length !== 0) {
               if ($('img.auth-org-logo').length === 0) {
                    $('div.okta-sign-in-header').prepend('<img src="/path/to/your/logo.png" class="auth-org-logo" alt="My Site logo">');
               }
          }
     });
</script>