Support » Developing with WordPress » Adding and rendering a shortcode to top of login page (above .page or .content)

  • Hi,

    Pretty simple, I’m trying to add custom HTML/JS to the top of my login page but above the .page or .content classes

    I know I can do it with JS and that’s how I have it right now but it causes a quick flash of the page…

    Currently I am working with some HTML but I’d like to be able to render a shortcode instead… so that the element that I am adding above the page stays dynamic.

    add_action("login_head", "hook_customcodelogin");
    
    function hook_customcodelogin() {
    	echo "html code here at the moment";
    }

    Any advice would be welcome

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding and rendering a shortcode to top of login page (above .page or .content)’ is closed to new replies.