You are trying to entirely replace the login header and footer with that of your theme, but that is not the intent of those actions. Despite those actions, the login form still outputs it’s own header and footer code. The actions are intended for you to only output supplemental HTML, not replace it.
You can achieve much of the styling used by your theme by applying custom CSS. It will not be as simple as calling a theme function because the element classes and IDs are different.
If CSS alone is not enough, you can still use those actions and others to inject additional HTML, but you cannot really replace any login page code unless you make a completely custom page.
Thread Starter
kidnec
(@kidnec)
thank you.
there is way to create file in template folder and use thah like page? Becouse CSS dont resolve what i want.
But thinking, that i create simple link to ?mypage=login and in code I create function to show loginform anywhere ….
Again, thank you for reply. 🙂
Yes! See Page_Templates#Custom_Page_Template
There already is a function to show the login form: Function_Reference/wp_login_form
It has several filters with which you can alter the form, or you could use it’s source code as a starting point for your own function, or just create one from scratch, it’s all good.