Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter DarthTater

    (@darthtater)

    Can one change the generated html using

    sidebar_login_widget_wp_login_form

    perhaps?

    Thread Starter DarthTater

    (@darthtater)

    I was able to get some help from the friendly folks over at WPMU DEV.

    I added this code to my child theme’s functions.php file:

    add_action('wp_footer', 'my_sidelogin_placeholders');
    function my_sidelogin_placeholders() {
    	?>
    	<script type="text/javascript">
    	jQuery(function() {
    		jQuery("#wp_sidebarlogin-2 #user_login").attr('placeholder','Username / email');
    		jQuery("#wp_sidebarlogin-2 #user_pass").attr('placeholder','Password');
    	});
    	</script>
    	<?php
    }

    Seems to be working fine, and condenses the size of the widget when someone is logged out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Option to show placeholders rather than labels?’ is closed to new replies.