Make WordPress Core

Opened 3 years ago

Last modified 9 months ago

#52964 new enhancement

Video On Login Page

Reported by: wparslan's profile wparslan Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords: reporter-feedback
Focuses: javascript, css, template Cc:


So I was wondering about how can I add a video as a background of the login form by editing the login form's code.
Turns out we cannot as there is no vector to do so.
Can we add a hook to do so..?

Change History (2)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Login and Registration
  • Keywords reporter-feedback added; needs-codex needs-design removed

Hi there, welcome to WordPress Trac! Thanks for the ticket.

You can use the login_enqueue_scripts hook to enqueue any scripts or styles on the login page, or login_head to output any CSS styles directly. Would that work for your use case?

#2 @rajinsharwar
9 months ago

Hi @wparslan, thanks for reporting this. As Sergey mentioned, I think you can use the login_enqueue_scripts hook to add any JS in the screen, and login_head to add any CSS. Shouldn't it be good enough, or do you have any other use cases in mind for this?

Note: See TracTickets for help on using tickets.