How can I put description text below my field’s label?
For now, you can use javascript to do this. Write this javascript at the end of your template file (register.php for example).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
// For each description we have. jQuery('p.description').each(function() { // Clone description. // Looking for parent div. // Looking for label of checkbox field or radio field first. var desc = jQuery(this).clone(), parent = jQuery(this).parent(), label = parent.find('span.label'); // If there is no label of checkbox field or radio field, we look for normal labels. if (!label.length) { label = parent.find('label'); } // If there is a label. if (label.length) { // Putting the description after the label. label.after(desc); // Removing the original description. jQuery(this).remove(); } }); |